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

Improve pack200 error message

XMLWordPrintable

    • b116
    • x86
    • windows_vista
    • Verified

      A DESCRIPTION OF THE REQUEST :
      When pack200 encounters an unknown class attribute which triggers an error it throws the following exception:

      com.sun.java.util.jar.pack.Attribute$FormatException:
      class.net.sourceforge.Retroweaver: unknown in MyPackage.MyClassFile

      this message is confusing for two reasons:

      1) It isn't clear what pack200 is complaining about
      2) It isn't clear what the name of the exception is (the "class" prefix is misleading)

      I suggest using the following message instead:

      com.sun.java.util.jar.pack.Attribute$FormatException: unknown class attribute "net.sourceforge.Retroweaver" in MyPackage.MyClassFile

      JUSTIFICATION :
      Ease of use, clarity

            ksrini Kumar Srinivasan
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: