Project: JDT
Bug 11448 extract method: incorrect on anonymous inner types
Reported: 2002-03-15 06:32:11 | Status: resolved fixed

class A { void m(){ Object u= /*[*/new Object(){}/*]*/; } } this is extracted to a method with return type A which causes a compile error

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/Bindings.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodAnalyzer.java