| Summary: | "Java AST creation" error. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Whitney Sorenson <sorensm> | ||||
| Component: | Core | Assignee: | David Audel <david_audel> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.0 | ||||||
| Target Milestone: | 3.0 M9 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 2000 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Whitney Sorenson
Could you please attach to this PR the source of the class you paste? I need to investigate asap. Created attachment 10175 [details]
The class that caused the error
Here is a zip of the java file exactly as it was when the error occured. The
second time I was able to reproduce I simply had to paste the second set of
}}}; below the private PropertyChangeListener stackListener = new
PropertyChangeListener() { line.
Reproduced. It seems to be a problem with positions and syntax errors in code. We are in a case a field declaration has no declaration end and no declaration source end. There are two ways to fix it: 1) close the field declaration inside the updateOnClosingBrace(...) 2) close the field declaration inside the updatedFieldDeclaration() I patch this problem. David, could you please double-check my change in: RecoveredField#updateOnClosingBrace(int, int)? Thanks. David, I added regression tests in ASTConverterTest2. Fix seems good for me Fixed. Verified in 200405180816 |