Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213424

VersionProps duplicate and skipped initialization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: