BCEL still corrupts generic methods if bytecode offsets are modified

XMLWordPrintable

    • b40
    • generic
    • generic

        Unfortunately, the fix for jdk8062608 does not go far enough. While jdk8062608 fixed the MethodGen constructor so that the LVT is no longer corrupted, and the LVTT is correctly duplicated when "cloning" a method, the rest of the MethodGen class still has no knowledge of the VLTT. So if we subsequently modify the instruction list, only bytecode offsets in the LVT are updated, and thus the LVTT offsets become out-of-sync with the LVT, resulting in verification error.

              Assignee:
              David Buck
              Reporter:
              David Buck
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: