JDK-8327173 : HotSpot Style Guide needs update regarding nullptr vs NULL
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: other
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-03-03
  • Updated: 2025-02-24
  • Resolved: 2024-03-06
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 23
23 b13Fixed
Related Reports
Relates :  
Relates :  
Description
The style guide currently says nullptr should be preferred to NULL, and that there are lots of historical uses of NULL.  But existing uses of NULL have been eliminated (JDK-8299837 and related) and the style guide should be updated to reflect that.  It should now require the use of nullptr and avoidance of NULL.

Comments
Changeset: 3d37b286 Author: Kim Barrett <kbarrett@openjdk.org> Date: 2024-03-06 22:42:18 +0000 URL: https://git.openjdk.org/jdk/commit/3d37b28642fd2715ab5c365426409c61939a1436
06-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18101 Date: 2024-03-04 08:38:09 +0000
04-03-2024