Community
Participate
Working Groups
Build 20031008 - Define unit X.java: - Open type on X - Observe that the anonymous is not in the hierarchy. public class X { // now wraps array initializers String[] str = {"aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa"}; X(String s) { } protected void foo() { // now tolerate comments in anonymous X a = new X("") { //$NON-NLS-1$ public void run() { } }; } }
Created attachment 6384 [details] Proposed fix Resolve anonymous even if there is no corresponding constructor
I have a slightly better version of this fix. Will release. Please add a regression test.
Added regression test TypeHierarchyTests.testAnonymousType6()
Verified.