Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 466098

Summary: [quick fix] quick fix multicatch block generation can produce syntax errors
Product: [Eclipse Project] JDT Reporter: Connor Balin <cmbalin>
Component: UIAssignee: 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:
Description Flags
SSCCE none

Description Connor Balin CLA 2015-05-01 13:40:22 EDT
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.
Comment 1 Noopur Gupta CLA 2015-05-08 04:41:47 EDT
Reproducible with Eclipse 3.8.1 also.
Comment 2 Eclipse Genie CLA 2019-12-30 13:47:58 EST
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.