Browse Source

[JASSIST-131] Fix ConstPoolWriter.addStringInfo()

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@570 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
kabir.khan@jboss.com 13 years ago
parent
commit
b0f33152bb
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/main/javassist/bytecode/ClassFileWriter.java

+ 2
- 1
src/main/javassist/bytecode/ClassFileWriter.java View File

* @return the index of the added entry. * @return the index of the added entry.
*/ */
public int addStringInfo(String str) { public int addStringInfo(String str) {
int utf8 = addUtf8Info(str);
output.write(StringInfo.tag); output.write(StringInfo.tag);
output.writeShort(addUtf8Info(str));
output.writeShort(utf8);
return num++; return num++;
} }



Loading…
Cancel
Save