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: | "Remove catch statement" should not remove entire multicatch block | ||
---|---|---|---|
Product: | java | Reporter: | _ gtzabari <gtzabari> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ajeh, dbalek |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Proposed patch to nb-javac |
Description
_ gtzabari
2013-09-29 22:33:35 UTC
NB javac currently reports position that corresponds to the entire 'catch' clause as if the reporting code was not updated when multicatch was added. Dusane, please review a small patch; it should report the Type tree for the offending exception type in a multicatch clause, but should retain the behaviour for normal catches. Created attachment 141047 [details]
Proposed patch to nb-javac
just ignore the project related changes, sorry. The only file to be modified is Flow.java The proposed patch looks OK to me. Fixed in rev http://hg.netbeans.org/jet-main/rev/838c029341ab, pending nb-javac patch nb-javac#698f6461a3bb http://hg.netbeans.org/main/nb-javac/rev/698f6461a3bb http://hg.netbeans.org/jet-main/rev/12e9baa8e19f *** Bug 236808 has been marked as a duplicate of this bug. *** |