Community
Participate
Working Groups
Build ID: M20060629-1905 Steps To Reproduce: 1.When editing the third catch block the editor gives a "Duplicate local variable" error for the second "exception": ------------------------------ package eclipse.exceptions; import java.io.EOFException; import java.io.FileNotFoundException; import java.io.IOException; import org.xml.sax.SAXException; public class ExceptionContentAssist { public void doSomething() throws FileNotFoundException, EOFException, SAXException{ } public void doSomethingElse() { try { doSomething(); } catch ( SAXException exception) { } catch ( FileNotFoundException exception ) { } catch ( // working before the slashes ) { } } } More information: Could be reproduced in Eclipse 3.3M5
Might be related to recovery support.
Created attachment 59026 [details] Proposed fix Proposed fix contains: - fixed grammar - a filter on invalid referenced types (in case of recovery) - corresponding test case All tests completed with re-generated parser.
The fix of Eric is good. Thanks Eric. Released for 3.3M6. Tests added ParserTest#test027() StatementRecoveryTest#test0044()
>The fix of Eric is good. What was broken with Eric? ;-)
Eric isn't really broken but we need to improve it because currently he isn't fully functional ;-p
Verified for 3.3 M6 using build I20070319-1335.