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

VersionProps duplicate and skipped initialization

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 12
    • 12
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: