Summary: | Strange syntax diagnosis with incorrect annotations | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Audel <david_audel> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
David Audel
2004-12-10 13:24:18 EST
The problem come from modifer. Parser#modiferSourceStart is not reinitialized when recovery restart. So when "@interface MyAnn" is parsed the declationSourceStart of the type declaration is wrong. This bug also created InvalidArgumentException inside ASTConverter. Fixed and test added. ComplianceDiagnoseTest#test0049() the new problems is "----------\n" + "1. ERROR in X.java (at line 6)\n" + " public @MyAnn(\"\",\"\") class Test { \n" + " ^\n" + "Syntax error on token \",\", / expected\n" + "----------\n"; Verified for 3.1 M4 using build I200412140800. |