Summary: | Can't access Inner class static field through an instance | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nils Edvardsson <nils.edvardsson> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 M5 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Nils Edvardsson
2003-01-07 08:32:39 EST
In JDK 1.41, this test fails with: Outer.java:10: unexpected type required: class, package found : variable System.out.println(Outer.cOuter.Inner.mInnerAttribute); ^ 1 error Question from Nils in email: Do you know if this is a new feature of JDK 1.4? The code compiles for JDK 1.3. No I don't know offhand... but I suspect it was a bug fix put into JDK 1.4.1. I doubt we'll change our 1.3 behaviour to match JDK 1.3 since JDK 1.4.1 has changed. JDK1.3 had numerous bugs which got fixed in 1.4.1. Usually we follow 1.4.1 unless it breaks JCK 1.3 certification. Ok to close? Yes close it. Closing |