Tapestry
  1. Tapestry
  2. TAPESTRY-1840

Tapestry 5 does not compile with Java 6

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.8
    • Component/s: None
    • Labels:
      None

      Description

      I've tried downloading the sources for tapestry5 and build it just for curiosity's sake. Everytime i try to build it with java6 I get the error below. Haven't any of you tried building it with java6 yet? It's been like that for all releases of java6 i've tried.

      Anyway, it's probably not intended to stay that way. Inserting a cast at the assignment in the reported line will make it compile, but I have no idea if it is correct.

      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Tapestry Inversion of Control Container
      [INFO] task-segment: [install]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Compiling 172 source files to E:\prosjekter\tapestry5svn\tapestry5\trunk\tapestry-ioc\target\classes
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Compilation failure
      E:\prosjekter\tapestry5svn\tapestry5\trunk\tapestry-ioc\src\main\java\org\apache\tapestry\ioc\internal\services\ChainBuilderImpl.java:[125,65] incompatible types
      found : java.lang.reflect.Constructor<?>
      required: java.lang.reflect.Constructor<T>

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568056 ] jira [ 12590024 ]
        Mark Thomas made changes -
        Workflow jira [ 12415447 ] Default workflow, editable Closed status [ 12568056 ]
        Howard M. Lewis Ship made changes -
        Summary Tapestry 5 does not compiled with Java 6 Tapestry 5 does not compile with Java 6
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.0.8 [ 12312898 ]
        Resolution Fixed [ 1 ]
        Howard M. Lewis Ship made changes -
        Summary tapestry5 still doesnt compile with java6 Tapestry 5 does not compiled with Java 6
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Trivial [ 5 ]
        Eirik Maus created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Eirik Maus
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development