Project: JDT
Bug 96949 [refactoring] Convert anonymous: generates unnecessary call to super()
Reported: 2005-05-27 07:11:03 | Status: verified fixed

Against I20050527-0010 Given code: public void foo(final int pVar1) { final int lVar2= 1; Runnable r= new Runnable() { public void run() { int x= pVar1 + lVar2; } }; } When converting anonymous inner class to nested class TheThing, the generated class contains an unnecessary call to super() in the constructor: private TheThing(int pVar1, int pVar2) { super(); fVar1 = pVar1; fVar2 = pVar2; }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ConvertAnonymousToNested/canConvert/A_test11_out.java org.eclipse.jdt.ui.tests.refactoring/resources/ConvertAnonymousToNested/canConvert/A_test18_out.java org.eclipse.jdt.ui.tests.refactoring/resources/ConvertAnonymousToNested/canConvert/A_test19_out.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ConvertAnonymousToNestedRefactoring.java