This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IllegalStateException: Unexpected type java.lang.Exception of kind UNION in [e.getMessage()] | ||
---|---|---|---|
Product: | debugger | Reporter: | Egor Ushakov <gorrus> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 204518 |
Attachments: | stacktrace |
Description
Egor Ushakov
2013-10-11 12:28:28 UTC
Created attachment 141011 [details]
stacktrace
To reproduce: public class TestUnionExcs { public static void main(String[] args) { try { args[2].charAt(10); } catch (ArrayIndexOutOfBoundsException | NullPointerException ex) { String msg = ex.getMessage().trim(); // Put breakpoint here System.err.println(msg); } } } Debug that class, after it stops on the breakpoint, do Step Over Expression. The exception is thrown then. Fixed by changeset: 269543:70c1a1cc3918 http://hg.netbeans.org/core-main/rev/70c1a1cc3918 |