[ https://issues.apache.org/jira/browse/CHAIN-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102599#comment-13102599 ]
Simone Tripodi commented on CHAIN-57: ------------------------------------- just for the record: in my Mac OS X Lion dev env, once re-installed the JDK5 {code} $ mvn --version Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /Applications/apache-maven-3.0.3 Java version: 1.5.0_30, vendor: Apple Inc. Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.7.1", arch: "i386", family: "unix" {code} The error is reproduced as well: {code} [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/simonetripodi/Documents/workspace/commons-chain/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 {code} > 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