JDK-6555017 : ClassFormatError for inner classes message misleading
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2007-05-08
  • Updated: 2017-03-28
  • Resolved: 2017-03-28
Related Reports
Relates :  
Description
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.

Comments
Not a priority. Closing as WNF.
28-03-2017