Community
Participate
Working Groups
The compiler allows the following program, which violates the JLS. The illegal statement is silently ignored. public class Outer { class Inner { Inner() { System.out.println(Outer.this); Outer.this = new Outer(); // illegal System.out.println(Outer.this); } } public static void main (String[] args) { new Outer().new Inner(); } }
This was fixed in Release 2.1.3 *** This bug has been marked as a duplicate of 46918 ***