Community
Participate
Working Groups
I20031203 + jdt.core, etc. from HEAD: IType#resolveType(String) doesn't resolve "Object" when applied to this local type 'Local': public class Outer { void foo() { class Local { void bar() { } } } } To see it in the debugger: - set a breakpoint in ChangeSignatureRefactoring#tryResolvingType(String) - select method 'bar' - menu Refactoring > Change Method Signature - add parameter Type:Object Name:object Default:null and click "Preview" -> breakpoint is hit, resolveType finds nothing
When the breakpoint is hit, the source of the working copy doesn't contain a reference to "Object". Thus the resolution doesn't find "Object" and returns null.
Sorry, this works for a top level type. Moving back to investigate.
Created attachment 7234 [details] Proposed patch
Released patch and added regression test TypeResolveTests.testResolveTypeInInner2()
Verified for 3.0M7