Hi, I am using the ant build script within eclipse to build 0.86. I am getting the following error:
Compiling 302 source files to C:\dev\RECODER\build [javac] C:\dev\RECODER\src\recoder\java\expression\ExpressionStatement.java:17: types recoder.java.LoopInitializer and recoder.java.Expression are incompatible; both define deepClone(), but with unrelated return types [javac] public interface ExpressionStatement extends Expression, LoopInitializer { [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error
I will try and fix this by using the eclipse compiler (see 0.82 problem thread), is this an acceptable solution or do you have other suggestions? The reason I ask is that the documentation suggests only using javac or jikes for compilation. What java compiler do you use during development?
Any help is greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am using the ant build script within eclipse to build 0.86. I am getting the following error:
Compiling 302 source files to C:\dev\RECODER\build
[javac] C:\dev\RECODER\src\recoder\java\expression\ExpressionStatement.java:17: types recoder.java.LoopInitializer and recoder.java.Expression are incompatible; both define deepClone(), but with unrelated return types
[javac] public interface ExpressionStatement extends Expression, LoopInitializer {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
I will try and fix this by using the eclipse compiler (see 0.82 problem thread), is this an acceptable solution or do you have other suggestions? The reason I ask is that the documentation suggests only using javac or jikes for compilation. What java compiler do you use during development?
Any help is greatly appreciated.
Hej,
As you mentioned, the bug has been filed before. Hopefully it will be fixed with the next JDK release, please cf. here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6294779
Concerning the documentation, I really need to redo that...
/Tobias