[ 
https://issues.apache.org/jira/browse/COLLECTIONS-510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hollis Waite updated COLLECTIONS-510:
-------------------------------------

    Attachment: COLLECTIONS-510.patch

Circumvent compilation error
--
[ERROR] 
/C:/commons-collections4-4.0-src/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java:[64,85]
 incompatible types:
bad type in conditional expression
    java.util.Comparator<capture#1 of ? super E> cannot be converted to 
java.util.Comparator<E>


> ReverseComparator does not compile under Java 8
> -----------------------------------------------
>
>                 Key: COLLECTIONS-510
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-510
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Comparator
>    Affects Versions: 4.0
>            Reporter: Hollis Waite
>              Labels: patch
>         Attachments: COLLECTIONS-510.patch
>
>
> My convoluted build process requires recompilation of Commons project with 
> Java 8. ReverseComparator contains the project's sole incompatibility. 
> Although Commons Collections doesn't *need* to compile with JDK 8, it could 
> be made to do so with one rather harmless change. Could attached patch be 
> merged into 4.1?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to