| Summary: | [1.7][quick fix] Don't propose "Add multi-catch clause to surrounding try" if only one exception | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
| Component: | UI | Assignee: | Deepak Azad <deepakazad> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | markus.kell.r, satyam.kandula | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 199367 [details]
fix + tests
Fixed in BETA_JAVA7
. Verified using patch 1.0.0.v20110714-1400 |
BETA_JAVA7 Don't propose "Add multi-catch clause to surrounding try" if only one exception is thrown: int m4() throws FileNotFoundException { if ("abc".length() == 3) { FileInputStream fis = new FileInputStream("/tmp/bla"); try { return fis.available(); // QF here } finally { fis.close(); } } return 1; }