bcel-dev

[Prev] Thread [Next]  |  [Prev] Date [Next]

DO NOT REPLY [Bug 47073] New: Class files containing "StackMapTable" attributes (on method code) are dumped incorrectly bugzilla Mon Apr 27 13:06:21 2009

https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

           Summary: Class files containing "StackMapTable" attributes (on
                    method code) are dumped incorrectly
           Product: BCEL
           Version: 5.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=23528)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23528)
proposed patch to possibly fix this issue

When dumping an (untouched) class file containing a StackMap table, the result
is not faithful and cannot be be reloaded afterwards.

The problem, I reckon, is within the method StackMapTableEntry.dump. One case
raises an exception though it should not and other cases write byte values
though short values should be written instead.

The attached diff fixed the problem for my purposes, but I do not know whether
it is correct.

Regards,
    Mattias

-- 
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]