Project: JDT
Bug 238418 [content assist] uses arg0 when generating overriding method in same CU
Reported: 2008-06-25 10:38:25 | Status: resolved fixed

I20080617-2000 Content assist uses arg0 as parameter name when generating an overriding method in the same CU. Expected: Should reuse the parameter names from the super method, like 'Source > Override/Implement Methods...' does. Works fine if the subclass is declared in a separate file. To reproduce: - create p/C.java: package p; public class C { void m(int a, int b) {} } class Sub extends C { } - content assist inside Sub - select m(..) => result: @Override void m(int arg0, int arg1) { // TODO Auto-generated method stub super.m(arg0, arg1); }

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/OverrideCompletionProposal.java