Community
Participate
Working Groups
The following teams: team class T1 { protected class R playedBy B {} private R f; T1(R r) { this.f = r; } } team class T2 extends T1 { T1(B as R r) { super(b); } } produce ilegal bytecode causing an IllegalAccessError at runtime. Apparently we try to access field f from a contructor that has been copied from T1 to T2. Even if the field has default visibility the compiler has problems with generating a valid stack map attribute.
Created attachment 201957 [details] Test Here are two tests to witness the issues at hand.