Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-57

Chain 2.0 does not build on older JDKs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      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.

      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] ------------------------------------------------------------------------
      

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              elijah Elijah Zupancic
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: