[jboss-jira] [JBoss JIRA] Closed: (JASSIST-131) ClassFileWriter.ConstPoolWriter.addStringInfo() corrupts the ConstPool

Shigeru Chiba (JIRA) jira-events at lists.jboss.org
Fri Jul 8 04:49:24 EDT 2011


     [ https://issues.jboss.org/browse/JASSIST-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shigeru Chiba closed JASSIST-131.
---------------------------------



> ClassFileWriter.ConstPoolWriter.addStringInfo() corrupts the ConstPool
> ----------------------------------------------------------------------
>
>                 Key: JASSIST-131
>                 URL: https://issues.jboss.org/browse/JASSIST-131
>             Project: Javassist
>          Issue Type: Bug
>    Affects Versions: 3.13.0.GA
>            Reporter: Kabir Khan
>            Assignee: Kabir Khan
>             Fix For: 3.14.0.GA
>
>
> It was mixing the output of itself and the utf info, this fixes it
>          public int addStringInfo(String str) {
> +            int utf8 = addUtf8Info(str);
>              output.write(StringInfo.tag);
> -            output.writeShort(addUtf8Info(str));
> +            output.writeShort(utf8);
>              return num++;
>          }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list