https://issues.apache.org/bugzilla/show_bug.cgi?id=50922
Summary: Code attribute size not updated
Product: BCEL
Version: 5.3
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
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).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]