Summary: | [1.5][compiler] enum constants cannot be referenced inside enum constants initializer | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Olivier Thomann
2005-06-29 17:08:51 EDT
Detection for enum static field references inside initializer did not handle enum constant body (direct superclass of declaringClass of field). Added EnumTest#test120. Fixed Verified in 3.2 M1 with build I20050808-2000. javac does not complain (at least javac 1.5.0_04-ea), but it should according to JLS 8.9 - in this case, self reference of A in its constructor. Verified using M20050923-1430 for 3.1.1 |