Loading... (original) (raw)
- Type:
Bug
- Resolution: Fixed
- Priority:
P2
- Fix Version/s: 9
- Affects Version/s: 8u20, 8u25
- Labels:
The JavaSE 8 specification for j.u.List
http://docs.oracle.com/javase/8/docs/api/java/util/List.html#replaceAll-java.util.function.UnaryOperator-
contains the following assertion:
"NullPointerException - if the specified operator is null"
This assertion has been satisfied by the following code sample:
Collections.checkedList(Arrays.asList(), Object.class).replaceAll((UnaryOperator)null);
before the fix for
but is not satisfied after the fix.
The following JCK8 testcase fails due to this:
api/java_util/Collections/checked/CheckedListReplaceAll.html#CheckedListReplaceAll[npe]
backported by
JDK-8053971 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8054117 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8054137 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8055171 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8056818 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8063773 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8070226 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Resolved
JDK-8053973 Collections.checkedList(empty list).replaceAll((UnaryOperator)null) doesn't throw NPE after JDK-8047795
- Closed
relates to
JDK-8047795 Collections.checkedList checking bypassed by List.replaceAll
- Closed
(3 backported by, 1 relates to)