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

jasm incorrectly processes the instruction pair: ldc MethodHandle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools

      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

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

              Created:
              Updated:
              Resolved: