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 |