Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   imeXMLProperties.java duplicate dir declaration (https://www.gnutellaforums.com/general-linux-support/8416-imexmlproperties-java-duplicate-dir-declaration.html)

rogerx1 February 24th, 2002 08:30 AM

imeXMLProperties.java duplicate dir declaration
 
Got the following when trying to compile core/ with j2sdk-1.4.0-fcs (see bottom of post for error output).

Just compared the code from limewire-2.02 and to limewire-2.2. It seems like there was a small change which provoked the error to occur:

v2.02 code:
File: core/com/limegroup/gnutella/xml/LimeXMLProperties.java

public boolean accept(File dirb, String name)

File: core/com/limegroup/gnutella/xml/LimeXMLProperties.java
@line325
-public boolean accept(File dir, String name)
+public boolean accept(File dirb, String name)

used "dirb" instead of "dir" in limewire-2.2 which surpressed the
"duplicate declaration error".


---- Old Error Output ----
core/
$ ./compile
Buildfile: build.xml

init:

core:
[javac] Compiling 1 source file to
/home/roger/src/limewire-source/limewire/core
[javac]
[javac] Found 1 semantic error compiling
"/home/roger/src/limewire-source/limewire/core/com/limegroup/gnutella/xml/LimeXMLProperties.java":
[javac]
[javac] 325. public boolean accept(File dir,
String name)
[javac] <->
[javac] *** Error: Duplicate declaration of local variable "dir".

BUILD FAILED

/home/roger/src/limewire-source/limewire/core/build.xml:56: Compile
failed, messages should have been provided.

Total time: 3 seconds

HeadHolio February 24th, 2002 09:30 AM

You want want to post this to one of the Limewire.org mailing lists.


All times are GMT -7. The time now is 02:33 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.