Skip to main content

All InternalError exceptions must include a message

No replies
Joined: 2003-08-24

There are many references to InternalError across the JRE. Some, like sun.misc.Launcher throw InternalError exceptions without a message. This is problematic because if an error occurs during JRE initialization (as it does for me with class sun.misc.Launcher) then all you get is this output:


with no stack-trace or anything and it is rather difficult to track down the source of the problem.

Either ensure that the JRE *always* includes a stack-trace or scan the JRE code and ensure that all exceptions include a description (which would make them easier to track down). At the very least do this for all references to InternalError. Deprecating the no-argument constructor for InternalError would also be a step in the right direction.

Do I need to file a RFE for this?