You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Eirik Maus (JIRA)" <de...@tapestry.apache.org> on 2007/10/20 00:14:50 UTC

[jira] Created: (TAPESTRY-1840) tapestry5 still doesnt compile with java6

tapestry5 still doesnt compile with java6
-----------------------------------------

                 Key: TAPESTRY-1840
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1840
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 5.0
            Reporter: Eirik Maus


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>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-1840) tapestry5 still doesnt compile with java6

Posted by "Zbigniew Ogledzki (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556184#action_12556184 ] 

Zbigniew Ogledzki commented on TAPESTRY-1840:
---------------------------------------------

Hello, Because I am trying to use it now and found this bug also I prepare a small patch, maybe you will like it :)
It's a basic casting, nothing special.
-- 
best regards, zgibek

file::java5_to_6.patch:

Index: ../trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ChainBuilderImpl.java
===================================================================
--- ../trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ChainBuilderImpl.java	(revision 609060)
+++ ../trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ChainBuilderImpl.java	Sat Jan 05 07:48:09 CET 2008
@@ -113,7 +113,7 @@
     {
         try
         {
-            Constructor<T> ctor = instanceClass.getConstructors()[0];
+            Constructor<T> ctor = (Constructor<T>) instanceClass.getConstructors()[0];
 
             return instanceClass.cast(ctor.newInstance(commands));
         }


> tapestry5 still doesnt compile with java6
> -----------------------------------------
>
>                 Key: TAPESTRY-1840
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1840
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Eirik Maus
>            Priority: Trivial
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Closed: (TAPESTRY-1840) Tapestry 5 does not compiled with Java 6

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-1840.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.8
         Assignee: Howard M. Lewis Ship

> Tapestry 5 does not compiled with Java 6
> ----------------------------------------
>
>                 Key: TAPESTRY-1840
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1840
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Eirik Maus
>            Assignee: Howard M. Lewis Ship
>            Priority: Trivial
>             Fix For: 5.0.8
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1840) Tapestry 5 does not compiled with Java 6

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1840:
-------------------------------------------

    Summary: Tapestry 5 does not compiled with Java 6  (was: tapestry5 still doesnt compile with java6)

> Tapestry 5 does not compiled with Java 6
> ----------------------------------------
>
>                 Key: TAPESTRY-1840
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1840
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Eirik Maus
>            Priority: Trivial
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1840) tapestry5 still doesnt compile with java6

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1840:
-------------------------------------------

    Priority: Trivial  (was: Major)

Being on a Mac, I don't have access to JDK 1.6 to investigate this :-)

That's actually a good thing, as it ensures compatibility with JDK 1.5.

This represents some subtle and ugly change in generics between JDK 1.5 and 1.6.  Without a JDK 1.6 compiler, it's hard for me to diagnose.  Feel free to contribute a patch!

> tapestry5 still doesnt compile with java6
> -----------------------------------------
>
>                 Key: TAPESTRY-1840
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1840
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Eirik Maus
>            Priority: Trivial
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1840) Tapestry 5 does not compile with Java 6

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1840:
-------------------------------------------

    Summary: Tapestry 5 does not compile with Java 6  (was: Tapestry 5 does not compiled with Java 6)

> Tapestry 5 does not compile with Java 6
> ---------------------------------------
>
>                 Key: TAPESTRY-1840
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1840
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Eirik Maus
>            Assignee: Howard M. Lewis Ship
>            Priority: Trivial
>             Fix For: 5.0.8
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org