Project: JDT
Bug 270462 [toString] toString wizard generates wrong code
Reported: 2009-03-30 10:51:23 | Status: verified fixed

I20090325-1135 + plug-in export. Generating toString using MessageFormat produces wrong result: public String toString() { return MessageFormat.format("a [i={1}, j={2}, k={3}]", new Object[] { Integer.valueOf(i), Integer.valueOf(j), Integer.valueOf(k) }); } Pattern starts with 0. Please also verify all other generated code.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/GenerateToStringTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/tostringgeneration/StringFormatGenerator.java