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

Package.get{ImplementationTitle, Specification{Vendor, Version}} doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.2_02
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      02
    • CPU:
      x86
    • OS:
      linux, windows_2000, windows_xp
    • Verification:
      Verified

      Backports

        Description



        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)
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ksrini Kumar Srinivasan
                  Reporter:
                  gmanwanisunw Girish Manwani (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: