-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
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
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
- relates to
-
CODETOOLS-7902892 jasm incorrectly processes reference_kind:reference_index pair in ldc Dynamic instructions
- Resolved