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

Kabir Khan (JIRA) jira-events at lists.jboss.org
Tue Aug 24 06:23:11 EDT 2010


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

Kabir Khan resolved JASSIST-131.
--------------------------------

    Resolution: Done


> ClassFileWriter.ConstPoolWriter.addStringInfo() corrupts the ConstPool
> ----------------------------------------------------------------------
>
>                 Key: JASSIST-131
>                 URL: https://jira.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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list