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: bcel-dev@jakarta.apache.org
        ReportedBy: mulbr...@ira.uka.de


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: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org

Reply via email to