ClassFormatError for inner classes message misleading

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • 10
    • Affects Version/s: 7
    • Component/s: hotspot
    • generic
    • generic

      The ClassFormatError message is somehow misleading:
      Exception in thread "main" java.lang.ClassFormatError: Illegal class modifiers in class test: 0x209

      It looks like the modifiers of class "test" is 0x209. I think
      a better message would be:
      Illegal class modifiers in class test's InnerClasses: 0x209
      or
      Illegal class modifiers in class test's inner class Enter: 0x209

      It would have saved a lot of time and debugging the VM to discover it was really
      the inner class whose modifiers were wrong.

            Assignee:
            Unassigned
            Reporter:
            Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: