Community
Participate
Working Groups
R3.0 No problem is reported when accessing a static field using the 'super' keyword. public class Bug_53102 { public static final String s= "string"; } class Exts extends Bug_53102 { public static final String s= "string"; public void foo() { System.out.println(super.s + // problem not reported this.s); // problem correctly reported } }
Created attachment 13823 [details] Apply on HEAD Proposed patch
Created attachment 13824 [details] Apply on HEAD Patch for the Negative tests.
Fix looks good, pls apply it (post M2)
Fixed and released in HEAD. Existing tests have been updated.
Added new regression tests.
Verified for 3.1M3 with build I20041101.