-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 8
-
Component/s: core-libs
Method of class Comparator
default <S extends T> Comparator<S> thenComparing(Comparator<? super T> other)
Specifies
Throws:
NullPointerException - if the argument is null.
This assertion is not satisfied by build 81-lambda.
The following
((Comparator<?>)(a, b) -> 0).thenComparing((Comparator)null);
will not throw anything.
The following JCK test will fail due to this issue:
api/java_util/Comparator/DefenderMethods.html#DefenderMethods[thenComparingWithNull]
default <S extends T> Comparator<S> thenComparing(Comparator<? super T> other)
Specifies
Throws:
NullPointerException - if the argument is null.
This assertion is not satisfied by build 81-lambda.
The following
((Comparator<?>)(a, b) -> 0).thenComparing((Comparator)null);
will not throw anything.
The following JCK test will fail due to this issue:
api/java_util/Comparator/DefenderMethods.html#DefenderMethods[thenComparingWithNull]