[josm-dev] Java 1.5 compile error
Andre Hinrichs
andre.hinrichs at gmx.de
Sun Jan 25 17:07:37 GMT 2009
Hi List,
there is a compile error with Java 1.5 and SVN version 1339.
With java 1.6 there are some (other) warnings but the build succeeds.
$ 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 277 source files to /home/hinrichs/projekte/josm/build
[javac] /home/hinrichs/projekte/josm/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java:200:
cannot find symbol
[javac] symbol : method getDropLocation()
[javac] location: class javax.swing.JList
[javac] int dropIndex =
selectedList.locationToIndex(selectedList.getDropLocation().getDropPoint());
[javac]
^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
BUILD FAILED
/home/hinrichs/projekte/josm/build.xml:70: Compile failed; see the compiler
error output for details.
Total time: 3 seconds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20090125/74bfa57a/attachment.pgp>
More information about the josm-dev
mailing list