JDK-8031737 : CHECK_NULL and CHECK_EXCEPTION macros cleanup
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-01-14
  • Updated: 2017-09-05
  • Resolved: 2014-02-03
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 8 JDK 9 Other
8u20Fixed 9 b03Fixed openjdk7uFixed
Related Reports
Relates :  
Description
The macros in jni_util.h should have JNU_ prefix, rename:
 - CHECK_NULL, CHECK_NULL_RETURN
 - CHECK_EXCEPTION, CHECK_EXCEPTION_RETURN
Comments
The JNU prefix is needed only for macros with an Env argument. The CHECK_NULL and CHECK_NULL_RETURN macros have a more general use and are fine without the prefix.
03-02-2014

The macros should use the common defensive form of do { ...} while (0)
16-01-2014