| Summary: | [1.7] Missing error "No exception of type Exception[] can be thrown" | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Deepak Azad <deepakazad> | ||||||
| Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | Olivier_Thomann, satyam.kandula, srikanth_sankaran | ||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.7.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
I'll take a look, Created attachment 197385 [details]
Patch v0.99
This fixes the problem and includes tests.
There is still some issue with source positions.
Created attachment 197397 [details]
Proposed patch + tests
Thanks for the report, fix & tests released in BETA_JAVA 7 branch. Verified using Eclipse Java 7 Support(Beta) feature patch v20110623-0900. |
BETA_JAVA7 The compiler does not show any error in the following snippet. --------------------------------- try { System.out.println(); } catch (Exception e []) { e.printStackTrace(); } --------------------------------- but shows an error for the following --------------------------------- try { System.out.println(); } catch (Exception [] e) { e.printStackTrace(); } --------------------------------- Both snippets result in an error with HEAD