commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elijah Zupancic (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CHAIN-57) Chain 2.0 does not build on older JDKs
Date Thu, 08 Sep 2011 18:38:08 GMT
Chain 2.0 does not build on older JDKs
--------------------------------------

                 Key: CHAIN-57
                 URL: https://issues.apache.org/jira/browse/CHAIN-57
             Project: Commons Chain
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: OS name: "linux" version: "2.6.35-30-generic" arch: "amd64" Family:
"unix"
Ubuntu 10.10 x64


Versions Tested:

{noformat}
ibm-java2-x86_64-50 (1.5 j9vmxa6423ifx-20110624) [SUCCESS]
Sun/Oracle 1.5.0_22 [FAILURE]
OpenJdk 1.6.0_20 [SUCCESS]
Sun/Oracle 1.6.0_11 [FAILURE]
Sun/Oracle 1.6.0_21 [FAILURE]
Sun/Oracle 1.6.0_27 [SUCCESS]
ibm-java-x86_64-60 (1.6 jvmxa6460-20081105_25433) [FAILURE]
ibm-java-x86_64-60 (1.6 jvmxa6460sr9-20110624_85526) [SUCCESS]
{noformat}
            Reporter: Elijah Zupancic
            Priority: Minor


Older versions of the JDK irrespective of vendor fail to compile chain v2.

I recommend that we do not do any code changes, but rather inform the users in the documentation
to compile with a newer JDK version.

The following is the typical output of a failed build. This particular output is when I tried
to build using the Sun/Oracle JDK 1.6.0_21.

{noformat}
mvn clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Commons Chain
[INFO]    task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-idea-plugin: checking for updates from internal
[INFO] Repository 'internal' will be blacklisted
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting /home/elijah/dev/version-2.0-work/target
[INFO] [antrun:run {execution: javadoc.resources}]
[INFO] Executing tasks

main:
     [copy] Copying 2 files to /home/elijah/dev/version-2.0-work/target/apidocs/META-INF
[INFO] Executed tasks
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] Copying 2 resources to META-INF
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 63 source files to /home/elijah/dev/version-2.0-work/target/classes
[INFO] [bundle:manifest {execution: bundle-manifest}]
[WARNING] Warning in manifest for commons-chain:commons-chain:jar:2.0-SNAPSHOT : Did not find
matching referal for !javax.portlet
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 37 source files to /home/elijah/dev/version-2.0-work/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/elijah/dev/version-2.0-work/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java:[141,42]
type parameters of <T>T cannot be determined; no unique maximal instance exists for
type variable T with upper bounds T,java.lang.Object

[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/elijah/dev/version-2.0-work/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java:[141,42]
type parameters of <T>T cannot be determined; no unique maximal instance exists for
type variable T with upper bounds T,java.lang.Object


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Wed Sep 07 08:09:12 PDT 2011
[INFO] Final Memory: 51M/300M
[INFO] ------------------------------------------------------------------------
{noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message