Setting up compiler compliance is not enough. You have to use JDK 1.5 compiler to make sure you don't use any Java 1.6 api.
Anyway is Java 5 support still necessary? Java 6 seems to be available on most computers now. On Sun, Jan 25, 2009 at 8:55 PM, Igor Shubovych <[email protected]> wrote: > Andre, > > Which JDK do you have? > > I set up Java compiler compliance level to Java 5. For all and for classes > too. > So it should be ok. > > Igor Shubovych > > 2009/1/25 Andre Hinrichs <[email protected]> > >> 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 >> >> _______________________________________________ >> josm-dev mailing list >> [email protected] >> http://lists.openstreetmap.org/listinfo/josm-dev >> >> > _______________________________________________ > josm-dev mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/josm-dev > _______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
