Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159577 - Java 1.5 patch for commons-el-1.0-r1
Summary: Java 1.5 patch for commons-el-1.0-r1
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-31 07:15 UTC by deepred
Modified: 2007-01-20 14:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch for resolv a java-1.5 error in commons-el code (commons-el-1.0-jdk15.patch,1011 bytes, patch)
2006-12-31 07:17 UTC, deepred
Details | Diff
a patch for resolv a java-1.5 error in commons-el code (commons-el-1.0-jdk15.patch,1011 bytes, patch)
2006-12-31 07:19 UTC, deepred
Details | Diff
a patch for resolve a java-1.5 error in commons-el code (commons-el-1.0-jdk15.patch,1011 bytes, patch)
2006-12-31 07:20 UTC, deepred
Details | Diff
a patch to resolve another java-1.5 error in commons-el code (commons-el-1.0-jdk15-2.patch,814 bytes, patch)
2006-12-31 07:23 UTC, deepred
Details | Diff
Ebuild patch to force java1.5 compile (commons-el-1.0-r1.ebuild.patch,448 bytes, patch)
2006-12-31 07:24 UTC, deepred
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description deepred 2006-12-31 07:15:35 UTC
Error in emerge dev-java/commons-el with jdk-1.5
Comment 1 deepred 2006-12-31 07:17:57 UTC
Created attachment 105042 [details, diff]
a patch for resolv a java-1.5 error in commons-el code
Comment 2 deepred 2006-12-31 07:19:01 UTC
Created attachment 105043 [details, diff]
a patch for resolv a java-1.5 error in commons-el code
Comment 3 deepred 2006-12-31 07:20:12 UTC
Created attachment 105044 [details, diff]
a patch for resolve a java-1.5 error in commons-el code
Comment 4 deepred 2006-12-31 07:23:25 UTC
Created attachment 105047 [details, diff]
a patch to resolve another java-1.5 error in commons-el code
Comment 5 deepred 2006-12-31 07:24:40 UTC
Created attachment 105048 [details, diff]
Ebuild patch to force java1.5 compile
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-01-20 14:21:37 UTC
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