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

VersionProps duplicate and skipped initialization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • core-libs
    • b20

      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.

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

              Created:
              Updated:
              Resolved: