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

JASM error when parsing invokedynamic string static argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • asm_tools_6.0
    • asm_tools_5.0
    • tools
    • None

      When passing string literal as a static argument after int or long, JASM fails to assemble.

      package tests/indy;

      super public class indy_test
          version 52:0
      {

      public static Method run:"()V"
          stack 5 locals 5
      {
              invokedynamic REF_invokeStatic:BootstrapAndTarget.bootstrap:"([Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":targetMethod:"()V" int 1, "string";
              return;
      }

      }

      The following error will be produced:
      indy_test.jasm:17: Error: <INTVAL> expected.
              invokedynamic REF_invokeStatic:BootstrapAndTarget.bootstrap:"([Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":targetMethod:"()V" int 1, "string";
                                                                                                                                                                                                                                                                               ^
      1 error

            bsrbnd Bernard Blaser
            kfertikov Kirill Fertikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: