| Summary: | [quick fix] quick fix multicatch block generation can produce syntax errors | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Connor Balin <cmbalin> | ||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | noopur_gupta | ||||
| Version: | 3.8.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
Reproducible with Eclipse 3.8.1 also. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Created attachment 253039 [details] SSCCE Given a try-with-resources for which the instantiation of the resources is declared to throw both an exception type and a subclass of that type, the "add multicatch" quick fix will generate a multicatch catching both the superclass and the subclass (and sometimes even Exception for good measure). That can't compile.