Summary: | Instance initializer in anon inner class generates errors | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Chris Smith <cdsmith0425> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0 M1 | ||
Hardware: | PC | ||
OS: | Windows 98 | ||
Whiteboard: |
Description
Chris Smith
2001-11-14 21:01:35 EST
This is actually a bug in our Parser, reducing incorrectly the assignment to the anonymous type instance. The bug disappears if removing the initializer nested inside. After analysis, it appears that the int stack of the parser is left inconsistent after the initializer got consumed, and the initializer start position is left on it. However, the assignment operator code is supposed to be on top of the stack when reducing the assignment, leading to an unknown operator error afterwards. |