Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C6807168 for ; Mon, 12 Sep 2011 14:37:20 +0000 (UTC) Received: (qmail 67569 invoked by uid 500); 12 Sep 2011 14:37:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 67334 invoked by uid 500); 12 Sep 2011 14:36:36 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 67264 invoked by uid 99); 12 Sep 2011 14:36:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 14:36:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 14:36:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3EFE090CC4 for ; Mon, 12 Sep 2011 14:36:10 +0000 (UTC) Date: Mon, 12 Sep 2011 14:36:10 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <442516130.17364.1315838170254.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1727373732.4253.1315507088783.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CHAIN-57) Chain 2.0 does not build on older JDKs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CHAIN-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102691#comment-13102691 ] Sebb commented on CHAIN-57: --------------------------- I just committed an alternate fix that works for me on Sun Java 1.5, but does not require an unchecked cast > 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 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 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