Community
Participate
Working Groups
In the attached test case, we report: ---------- 1. ERROR in c:\tests_sources\X.java (at line 6) new Y<Integer>() { void test() { System.out.println(X.this.m); } }.test(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ No enclosing instance of type X is accessible. Must qualify the allocation with an enclosing instance of type X (e.g. x.new A() where x is an instance of X). ---------- 1 problem (1 error) I think this should compile fine.
Created attachment 14704 [details] Compile this test case in -source 1.5 -1.5
This problem is fixed in build I200410260800. I'll add to build notes for 3.1 M3
Added regression test: GenericTypeTest#test343
Verified for 3.1 M3 with build I200411040800