Summary: | [1.5][compiler] compiler must not allow implicit static reference to outer type | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2005-02-07 06:05:40 EST
This compiles fine: class Outer { class Inner { } static void test(Inner i) { } } but once the reference involves a generic type it does not. This also compiles fine: class Outer { class Inner<T> { } static void test(Inner i) { } } as does: class X<T> { static class Outer { class Inner { } static void test(Inner i) { } } } Added GenericTypeTest#test620-623. Added static check during name resolution for member types. Fixed (will be released along with changes for bug 84496) Released |