Details
-
Bug
-
Resolution: Fixed
-
P1
-
8
-
b129
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034001 | 9 | Henry Jen | P1 | Closed | Fixed | b04 |
JDK-8033982 | 8u20 | Henry Jen | P1 | Closed | Fixed | b03 |
JDK-8034566 | 8u11 | Henry Jen | P1 | Resolved | Fixed | b01 |
JDK-8034007 | 8u5 | Henry Jen | P1 | Resolved | Fixed | b08 |
JDK-8035238 | emb-8u6 | Henry Jen | P1 | Closed | Fixed | b06 |
Description
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
The following method of java.util.Comparator requires that type U extend java.lang.Comparable.
<U extends Comparable<? super U>> Comparator<T> thenComparing(
Function<? super T, ? extends U> keyExtractor,
Comparator<? super U> keyComparator);
But this restriction is unnecessary because keyComparator is used to compare extracted key objects.
REPRODUCIBILITY :
This bug can be reproduced always.
A DESCRIPTION OF THE PROBLEM :
The following method of java.util.Comparator requires that type U extend java.lang.Comparable.
<U extends Comparable<? super U>> Comparator<T> thenComparing(
Function<? super T, ? extends U> keyExtractor,
Comparator<? super U> keyComparator);
But this restriction is unnecessary because keyComparator is used to compare extracted key objects.
REPRODUCIBILITY :
This bug can be reproduced always.
Attachments
Issue Links
- backported by
-
JDK-8034007 java.util.Comparator::thenComparing has unnecessary type restriction
- Resolved
-
JDK-8034566 java.util.Comparator::thenComparing has unnecessary type restriction
- Resolved
-
JDK-8033982 java.util.Comparator::thenComparing has unnecessary type restriction
- Closed
-
JDK-8034001 java.util.Comparator::thenComparing has unnecessary type restriction
- Closed
-
JDK-8035238 java.util.Comparator::thenComparing has unnecessary type restriction
- Closed