JDK-8204172 : Predicate::not should explicitly mention "NullPointerException - if target is null"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-31
  • Updated: 2018-06-26
  • Resolved: 2018-06-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b19Fixed
Related Reports
CSR :  
Relates :  
Description
In j.u.f.Predicate spec 
https://docs.oracle.com/javase/10/docs/api/java/util/function/Predicate.html
it is common to explicitly mention NPE throwing.
Predicate::not deserves to have it specified as well
Comments
The specification of Predicate::not may also need to state it calls Predicate.negate, as that has implications for subtypes if such a call is performed and is relied upon.
04-06-2018