You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2012/06/23 14:33:42 UTC

[jira] [Created] (COLLECTIONS-414) Collections does not compile with openjdk 1.6.0_24

Thomas Neidhart created COLLECTIONS-414:
-------------------------------------------

             Summary: Collections does not compile with openjdk 1.6.0_24
                 Key: COLLECTIONS-414
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-414
             Project: Commons Collections
          Issue Type: Bug
    Affects Versions: Nightly Builds
            Reporter: Thomas Neidhart
             Fix For: 4.0


There are several classes for which generic type inference does not work when using the openjdk 1.6.0_24 compiler:

{noformat}
[ERROR] /home/tn/workspace/apache/commons-collections/src/main/java/org/apache/commons/collections/functors/OnePredicate.java:[66,38] invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
[ERROR] required: org.apache.commons.collections.Predicate<? super java.lang.Object>[]
[ERROR] found: org.apache.commons.collections.Predicate<? super T>[]
{noformat}

This is mainly due to re-using a method argument that is restricted by Predicate<? super T> to assign methods results of type Predicate<T>.

The eclipse compiler does not report an error in these cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COLLECTIONS-414) Collections does not compile with openjdk 1.6.0_24

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart resolved COLLECTIONS-414.
-----------------------------------------

    Resolution: Fixed
    
> Collections does not compile with openjdk 1.6.0_24
> --------------------------------------------------
>
>                 Key: COLLECTIONS-414
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-414
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Thomas Neidhart
>             Fix For: 4.0
>
>
> There are several classes for which generic type inference does not work when using the openjdk 1.6.0_24 compiler:
> {noformat}
> [ERROR] /home/tn/workspace/apache/commons-collections/src/main/java/org/apache/commons/collections/functors/OnePredicate.java:[66,38] invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
> [ERROR] required: org.apache.commons.collections.Predicate<? super java.lang.Object>[]
> [ERROR] found: org.apache.commons.collections.Predicate<? super T>[]
> {noformat}
> This is mainly due to re-using a method argument that is restricted by Predicate<? super T> to assign methods results of type Predicate<T>.
> The eclipse compiler does not report an error in these cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COLLECTIONS-414) Collections does not compile with openjdk 1.6.0_24

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399965#comment-13399965 ] 

Hudson commented on COLLECTIONS-414:
------------------------------------

Integrated in commons-collections #32 (See [https://builds.apache.org/job/commons-collections/32/])
    [COLLECTIONS-414] work-around for test-case when providing null argument to static method that infers return type based on input argument. (Revision 1353130)

     Result = SUCCESS
tn : http://svn.apache.org/viewvc/?view=rev&rev=1353130
Files : 
* /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestCollectionUtils.java

                
> Collections does not compile with openjdk 1.6.0_24
> --------------------------------------------------
>
>                 Key: COLLECTIONS-414
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-414
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Thomas Neidhart
>             Fix For: 4.0
>
>
> There are several classes for which generic type inference does not work when using the openjdk 1.6.0_24 compiler:
> {noformat}
> [ERROR] /home/tn/workspace/apache/commons-collections/src/main/java/org/apache/commons/collections/functors/OnePredicate.java:[66,38] invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
> [ERROR] required: org.apache.commons.collections.Predicate<? super java.lang.Object>[]
> [ERROR] found: org.apache.commons.collections.Predicate<? super T>[]
> {noformat}
> This is mainly due to re-using a method argument that is restricted by Predicate<? super T> to assign methods results of type Predicate<T>.
> The eclipse compiler does not report an error in these cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COLLECTIONS-414) Collections does not compile with openjdk 1.6.0_24

Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399956#comment-13399956 ] 

Thomas Neidhart commented on COLLECTIONS-414:
---------------------------------------------

This is related to the following bugs:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954
https://bugs.eclipse.org/bugs/show_bug.cgi?id=98379
                
> Collections does not compile with openjdk 1.6.0_24
> --------------------------------------------------
>
>                 Key: COLLECTIONS-414
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-414
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Thomas Neidhart
>             Fix For: 4.0
>
>
> There are several classes for which generic type inference does not work when using the openjdk 1.6.0_24 compiler:
> {noformat}
> [ERROR] /home/tn/workspace/apache/commons-collections/src/main/java/org/apache/commons/collections/functors/OnePredicate.java:[66,38] invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
> [ERROR] required: org.apache.commons.collections.Predicate<? super java.lang.Object>[]
> [ERROR] found: org.apache.commons.collections.Predicate<? super T>[]
> {noformat}
> This is mainly due to re-using a method argument that is restricted by Predicate<? super T> to assign methods results of type Predicate<T>.
> The eclipse compiler does not report an error in these cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COLLECTIONS-414) Collections does not compile with openjdk 1.6.0_24

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COLLECTIONS-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399945#comment-13399945 ] 

Hudson commented on COLLECTIONS-414:
------------------------------------

Integrated in commons-collections #31 (See [https://builds.apache.org/job/commons-collections/31/])
    [COLLECTIONS-414] Fix type inference problems. (Revision 1353123)

     Result = SUCCESS
tn : http://svn.apache.org/viewvc/?view=rev&rev=1353123
Files : 
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/ChainedClosure.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/ChainedTransformer.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/NonePredicate.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/OnePredicate.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/SwitchClosure.java
* /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/functors/SwitchTransformer.java

                
> Collections does not compile with openjdk 1.6.0_24
> --------------------------------------------------
>
>                 Key: COLLECTIONS-414
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-414
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Thomas Neidhart
>             Fix For: 4.0
>
>
> There are several classes for which generic type inference does not work when using the openjdk 1.6.0_24 compiler:
> {noformat}
> [ERROR] /home/tn/workspace/apache/commons-collections/src/main/java/org/apache/commons/collections/functors/OnePredicate.java:[66,38] invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
> [ERROR] required: org.apache.commons.collections.Predicate<? super java.lang.Object>[]
> [ERROR] found: org.apache.commons.collections.Predicate<? super T>[]
> {noformat}
> This is mainly due to re-using a method argument that is restricted by Predicate<? super T> to assign methods results of type Predicate<T>.
> The eclipse compiler does not report an error in these cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira