JDK-8213424 : VersionProps duplicate and skipped initialization
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-11-06
  • Updated: 2018-11-15
  • Resolved: 2018-11-09
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 12
12 b20Fixed
Related Reports
Relates :  
Description
VersionProps.java.template has a static initializer that calls init().
The init method is also called from System.java which has the effect of init being called twice.

The "java.version" property is set twice/thrice, once in the native code (System.c) and again by the VersionProps.init() method.

Added tests also exposed a bug in which calling System.setProperties(null) did not initialize the version properties.