[
https://issues.apache.org/jira/browse/BCEL-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Bourg updated BCEL-151:
--------------------------------
Priority: Blocker
Environment: (was: Operating System: All
Platform: PC)
Fix Version/s: 6.0
> Code attribute size not updated
> -------------------------------
>
> Key: BCEL-151
> URL: https://issues.apache.org/jira/browse/BCEL-151
> Project: Commons BCEL
> Issue Type: Bug
> Components: Main
> Affects Versions: 5.3
> Reporter: Glen Chatfield
> Assignee: Apache Commons Developers
> Priority: Blocker
> Fix For: 6.0
>
>
> The code attribute length when dumped is not updated, and as such will write
> the old size of the attribute should the size of the actual byte code change.
> A possible fix is adding:
> "setLength(calculateLength());"
> to the first line of:
> org.apache.bcel.classfile.Code.dump(DataOutputStream) throws IOException
> When trying to execute code that has this error, it throws a
> ClassFormatException, Wrong code segment length (Should there be no other
> formatting errors with the code).
--
This message was sent by Atlassian JIRA
(v6.2#6252)