Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-131

Class files containing "StackMapTable" attributes (on method code) are dumped incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 6.8.1
    • 6.0
    • Main
    • None

    Description

      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

      Attachments

        1. svn-diff
          2 kB
          Mattias Ulbrich
        2. svn-diff
          2 kB
          Mattias Ulbrich
        3. patch
          2 kB
          Mattias Ulbrich

        Issue Links

          Activity

            People

              issues@commons.apache.org Apache Commons Developers
              mulbrich@ira.uka.de Mattias Ulbrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: