Community
Participate
Working Groups
Since I20050118 this code does not compile anymore. The access to 'publicField' is marked as 'not visible' public class A { private static class PrivateInner { public int publicField; } public static class PublicInner extends PrivateInner { } } class B { void foo(Object o) { A.PublicInner x; int i= ((A.PublicInner)o).publicField; int j= x.publicField; } } Also note the strange error range marked on the assignment to 'i'
This is fixed in HEAD where we report: ---------- 1. ERROR in c:\tests_sources\A.java (at line 13) int j= x.publicField; ^^^^^^^^^^^^^ The local variable x may not have been initialized ---------- 1 problem
Was fixed & released yesterday... just after the integration build :(.
Verified in I20050215-2300