Summary: | compile error happens if the constants defined in the method inner class are used in switch context | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | xwg <xwgyjbb> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | major | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 RC2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
xwg
2005-05-27 15:13:47 EDT
Could not reproduce in HEAD with: public class X { void test() { int item = 1; class ConstDef { final static int CONST_1 = 0; } switch (item) { case ConstDef.CONST_1: break; } } } What build are you using? 3.1rc1 doesn't reproduce it. Please reopen once steps to reproduce are available. reopen as it's not reproducible Cannot reproduce either with 3.1 RC2 |