Summary: | Missing semicolon should not prevent AST node creations. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Brett Kotch <bkotch> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | VERIFIED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | martinae |
Version: | 3.0 | ||
Target Milestone: | 3.2 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Brett Kotch
2003-10-15 20:18:20 EDT
This has to do with the error tollerance of the AST. A missing semicolon is (unfortunatly) already enough to prevent the creation of other statements. In the given examples I think for 'ArrayEnumeration e' it is clear that there won't be an AST. But for ArrayEnumeration e = null; String s I think the first statement should appear. Moving to jdt.core. *** Bug 44964 has been marked as a duplicate of this bug. *** We don't have error recovery at the statement level. A syntax error will prevent the AST from being created, because the rule cannot be reduced in the parser. Verified for 3.2 M5 using build I20060215-0010. Note that bug 44694 is_not_ a duplicate of this bug... |