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

Package.getImplementationVersion does not return jre version for Object.class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.4.2
    • core-libs

    Description



      Name: rmT116609 Date: 03/03/2004


      FULL PRODUCT VERSION :
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      Calling Object.class.getPackage().getImplementationVersion() returns null in jre1.4.2. This returned "1.4.1_02" when running in jre1.4.1_02 and "1.3.1_03" when running in jre1.3.1_03.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1)javac TestImplVersion.java
      2)java TestImplVersion

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expect the output to be:
      1.4.2
      ACTUAL -
      Actual output:
      null

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class TestImplVersion
      {
          public static void main(String [] args)
          {
              String impl = Object.class.getPackage().getImplementationVersion();
              System.out.println(impl);
          }
      }

      ---------- END SOURCE ----------

      Release Regression From : 1.4.1_02
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Incident Review ID: 200212)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              iris Iris Clark
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: