[OSM-dev] Problems compiling josm ....
Karl Newman
siliconfiend at gmail.com
Mon Jul 21 02:59:22 BST 2008
On Sun, Jul 20, 2008 at 1:57 PM, Joerg Ostertag (OSM Munich/Germany) <
openstreetmap at ostertag.name> wrote:
> Any Help/Fix is appreciated ...
>
>
> ------------- Compile Josm
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
> [javac] /home/tweety/
> svn.openstreetmap.org/applications/editors/josm/core/src/org/openstreetmap/josm/corrector/TagCorrectionTableModel.java:23
> :
> method does not override a method from its superclass
> [javac] @Override public int getColumnCount() {
> [javac] ^
>
> [javac] /home/tweety/
> svn.openstreetmap.org/applications/editors/josm/core/src/org/openstreetmap/josm/corrector/TagCorrectionTableModel.java:49
> :
> method does not override a method from its superclass
> [javac] @Override public int getRowCount() {
> [javac] ^
>
> [javac] /home/tweety/
> svn.openstreetmap.org/applications/editors/josm/core/src/org/openstreetmap/josm/corrector/TagCorrectionTableModel.java:53
> :
> method does not override a method from its superclass
> [javac] @Override public Object getValueAt(int rowIndex, int
> colIndex)
> {
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 3 errors
>
> BUILD FAILED
> /home/tweety/
> svn.openstreetmap.org/applications/editors/josm/core/build.xml:48:
> Compile failed; see the compiler error output for details.
>
> Total time: 8 seconds
>
> --
> Jörg (Germany, Tettnang)
>
It's a Java 5 vs. Java 6 issue. Java 5 didn't support the @Override
annotation for interface methods (only for inherited class methods), but
Java 6 requires it (argh! thanks, Sun). I thought JOSM was written to target
Java 5, but from the errors it looks like the code is targeting Java 6 but
it's being compiled with a Java 5 compiler. Actually, looking closer, it
seems that error is coming from the recently added reversed-way tag
corrector, which might have been written to target Java 6. You could
probably just remove those few @Override annotations and it should compile
fine.
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080720/979174df/attachment.html>
More information about the dev
mailing list