[josm-dev] Another Java version conflict
Ulf Lamping
ulf.lamping at googlemail.com
Mon Jan 19 23:50:27 GMT 2009
Andre Hinrichs schrieb:
> Hi List,
>
> there is again an error in the sources which only occurs in Java 5 but is fine
> in Java 6. Since the compile server runs on Java 5 it does not build a new
> JAR for downloading.
>
> Here is the error message:
>
> $ ant dist
> Buildfile: build.xml
>
> init:
> [mkdir] Created dir: /home/hinrichs/projekte/josm/build
> [mkdir] Created dir: /home/hinrichs/projekte/josm/dist
>
> compile:
> [javac] Compiling 272 source files to /home/hinrichs/projekte/josm/build
>
> [javac] /home/hinrichs/projekte/josm/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java:74:
> method does not override a method from its superclass
> [javac] @Override public void valueChanged(ListSelectionEvent
> e) {
> [javac] ^
>
> [javac] /home/hinrichs/projekte/josm/src/org/openstreetmap/josm/gui/dialogs/RelationEditor.java:297:
> method does not override a method from its superclass
> [javac] @Override public void valueChanged(ListSelectionEvent
> e) {
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 2 errors
>
My mistake!
I'm a bit unsure how to fix this. Simply remove the @Override statements?
Regards, ULFL
P.S: Hmmm, I don't get those problems with my (latest) JDK version. I
thought that the ant scripts were telling the JAVA compiler to be 1.5
like - so I should see this?!?
More information about the josm-dev
mailing list