Source: jcharts Version: 0.7.5 Severity: normal User: debian-j...@lists.debian.org Usertags: default-java9
This package fails to build with default-jdk pointing to openjdk-9-jdk. Please fix it, so that we can start the transition to Java 9. The wiki has some common problems and their solutions: https://wiki.debian.org/Java/Java9Pitfalls -source is set to 1.5, which is too low. After fixing this, 'enum' is used as a keyword, which is now illegal. Build log: compile: [javac] /build/jcharts-0.7.5/build/build.xml:50: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 121 source files to /build/jcharts-0.7.5/build/garbage [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.4 [javac] warning: [options] source value 1.4 is obsolete and will be removed in a future release [javac] XXX: totally hacking the source version [javac] /build/jcharts-0.7.5/src/org/jCharts/chartText/TextTag.java:407: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier [javac] java.util.Enumeration enum = attributes.keys(); [javac] ^ [javac] /build/jcharts-0.7.5/src/org/jCharts/chartText/TextTag.java:409: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier [javac] while( enum.hasMoreElements() ) [javac] ^ [javac] /build/jcharts-0.7.5/src/org/jCharts/chartText/TextTag.java:411: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier [javac] Object ob = enum.nextElement(); [javac] ^ [javac] 3 errors [javac] 2 warnings Cheers, Chris.