Error in emerge dev-java/commons-el with jdk-1.5
Created attachment 105042 [details, diff] a patch for resolv a java-1.5 error in commons-el code
Created attachment 105043 [details, diff] a patch for resolv a java-1.5 error in commons-el code
Created attachment 105044 [details, diff] a patch for resolve a java-1.5 error in commons-el code
Created attachment 105047 [details, diff] a patch to resolve another java-1.5 error in commons-el code
Created attachment 105048 [details, diff] Ebuild patch to force java1.5 compile
The thing is that if you change the depend to >=virtual/jdk-1.5 it will use -source 1.5 that will not work with 1.5 jdks of course. If we just keep it virtual/jdk-1.4 sun-jdk-1.5 happily emerges commons-el-1.0-r1 here. There isn't that much benefit from generating 1.5 bytecode that it would be worth raising the minimum depend to 1.5 as commons-el works fine with 1.4 too. * Using: sun-jdk-1.5 >>> Unpacking source... >>> Unpacking commons-el-1.0-src.tar.gz to /var/tmp/portage/dev-java/commons-el-1.0-r1/work >>> Source unpacked. Rewriting source attributes Using Sax to rewrite the build.xml files Rewriting ./build.xml Rewriting target attributes Using Sax to rewrite the build.xml files Rewriting ./build.xml Searching for bundled jars: None found. >>> Compiling source in /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src ... * Disabling system classpath for ant Buildfile: build.xml init: [echo] -------- el 1.0 -------- prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target [mkdir] Created dir: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/classes [mkdir] Created dir: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/conf [mkdir] Created dir: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/tests static: [copy] Copying 1 file to /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/conf build-servletapi: build-jspapi: compile-only: [javac] Compiling 57 source files to /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/classes [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/ImplicitObjects.java:538: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] Enumeration enum = request.getHeaders ((String) pKey); [javac] ^ [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/ImplicitObjects.java:539: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] if (enum != null) { [javac] ^ [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/ImplicitObjects.java:540: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] while (enum.hasMoreElements ()) { [javac] ^ [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/ImplicitObjects.java:541: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] l.add (enum.nextElement ()); [javac] ^ [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/parser/ELParser.java:1841: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) { [javac] ^ [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/parser/ELParser.java:1841: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) { [javac] ^ [javac] /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/src/java/org/apache/commons/el/parser/ELParser.java:1842: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier [javac] (try -source 1.5 to use 'enum' as a keyword) [javac] int[] oldentry = (int[])(enum.nextElement()); [javac] ^ [javac] 7 warnings [copy] Copying 4 files to /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/classes compile: jar: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/dist [mkdir] Created dir: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/classes/META-INF [copy] Copying 1 file to /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/target/classes/META-I. [jar] Building jar: /var/tmp/portage/dev-java/commons-el-1.0-r1/work/commons-el-1.0-src/dist/commons-el.jar BUILD SUCCESSFUL Total time: 2 seconds