-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.2
-
x86
-
windows_2000
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)
======================================================================
- relates to
-
JDK-4893051 Package.get{ImplementationTitle, Specification{Vendor, Version}} doesn't work
- Closed