git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@570 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -651,8 +651,9 @@ public class ClassFileWriter { | |||
* @return the index of the added entry. | |||
*/ | |||
public int addStringInfo(String str) { | |||
int utf8 = addUtf8Info(str); | |||
output.write(StringInfo.tag); | |||
output.writeShort(addUtf8Info(str)); | |||
output.writeShort(utf8); | |||
return num++; | |||
} | |||