Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902913

jasm incorrectly processes the instruction pair: ldc MethodHandle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      https://github.com/openjdk/asmtools/pull/17 introduced the regression in precessing instruction "ldc MethodHandle":

      The latest patch fixes `ldc Dynamic` but breaks `ldc MethodHandle`.
      Provided *.jasm file is successfully assembled with asmtools built
      from the `pull/15` branch but failed to be assembled with asmtools
      built from `pull/17` branch.

      The error message is as follows:

      TestLdcMethodHandle.jasm (17:42) Error: Wrong tag: Either Method or
      InterfaceMethod expected.
                      ldc MethodHandle REF_invokeStatic:Method
      TestLdcMethodHandle.main:"([Ljava/lang/String;)V";
                                                                  ^
      1 error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lkuskov Leonid Kuskov
              Reporter:
              lkuskov Leonid Kuskov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: