Project: JDT
Bug 39692 Create constructor from fields adds extra ',' when default constructor chosen.
Reported: 2003-07-07 08:49:45 | Status: resolved fixed

public class TestA { TestA() {} TestA(int a, int b, int c) {} TestA(char a, boolean foob, String fooSTringy) {} TestA(double cdDouble, char fFooChar, StringBuffer fBuffer) {} } public class TestB extends TestA { private int fFirstVar; protected char fSecondVar; public String fThirdVar; private StringBuffer fFourthVar; private List fListVar; TestB(int a, char q) { super(1, 2, 3); } } Choose the super() from the default constructor and this is created: public TestB(, char secondVar, StringBuffer fourthVar, List listVar) { super(); // TODO Auto-generated constructor stub fSecondVar= secondVar; fFourthVar= fourthVar; fListVar= listVar; }

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddCustomConstructorOperation.java