-
Bug
-
Resolution: Fixed
-
P2
-
8
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]