-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
02
-
x86
-
linux, windows_2000, windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2072278 | 5.0 | Kumar Srinivasan | P3 | Resolved | Fixed | tiger |
Name: gm110360 Date: 07/18/2003
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 :
Red Hat 9.0
A DESCRIPTION OF THE PROBLEM :
I want to run the packinfo.class to get package information
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java packinfo java.io
ACTUAL -
[root@xeye javaprog]# java packinfo java.io
Name = java.io
Implementation title = null
Implementation vendor = null
Implementation version = null
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
class packinfo
{
public static void main(String[] args){
String v="1.4.1";
if (args.length != 1){
System.out.println ("usage: java PackageInfo packagename");
return;
}
if (args [0].equals ("all"))
{
Package [] p = Package.getPackages ();
for (int i = 0; i < p.length; i++)
System.out.print (p [i].getName ()+", ");
return;
}
Package p = Package.getPackage (args [0]);
if (p == null){
System.out.println ("could not find package " + args [0]);
return;
}
//System.out.println(p.isCompatibleWith(v));
System.out.println ("Name = " + p.getName ());
System.out.println ("Implementation title = " + p.getImplementationTitle ());
System.out.println ("Implementation vendor = " + p.getSpecificationVendor ());
System.out.println ("Implementation version = " + p.getSpecificationVersion ());
}
}
---------- 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: 191679)
======================================================================
- backported by
-
JDK-2072278 Package.get{ImplementationTitle, Specification{Vendor, Version}} doesn't work
- Resolved
- duplicates
-
JDK-4936624 Package.get{Specification{Vendor, Version} always returns null
- Closed
- relates to
-
JDK-5048142 Regression-cte CTE_REGTEST/Generic/4893051/packinfo.java fails
- Closed
-
JDK-5007221 Package.getImplementationVersion does not return jre version for Object.class
- Closed