-
Bug
-
Resolution: Fixed
-
P3
-
asm_tools_7.0
-
None
-
b07
-
b07
The following jasm code snippet
------------
private static Method psmA:"(Ljava/lang/String;)Ljava/lang/String;"
stack 1 locals 1
{
aload_0;
invokedynamic InvokeDynamic REF_invokeStatic:java/lang/invoke/StringConcatFactory.makeConcatWithConstants:"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":makeConcatWithConstants:"(Ljava/lang/String;)Ljava/lang/String;" {
String "String"
};
areturn;
}
causes the jasm failure:
NEAR: LBRACE
ITestInterfaceA.jasm:48: Error: Value expected.
invokedynamic InvokeDynamic REF_invokeStatic:java/lang/invoke/StringConcatFactory.makeConcatWithConstants:"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":makeConcatWithConstants:"(Ljava/lang/String;)Ljava/lang/String;" {
^
ITestInterfaceA.jasm:191: Error: class file version expected
public static final InnerClass Lookup=class java/lang/invoke/MethodHandles$Lookup of class java/lang/invoke/MethodHandles;
^
ITestInterfaceA.jasm:193: Error: class file version expected
} // end Class ITestInterfaceA
^
3 errors
Nested static arguments syntax of invokedynamic instruction isn't supported.
------------
private static Method psmA:"(Ljava/lang/String;)Ljava/lang/String;"
stack 1 locals 1
{
aload_0;
invokedynamic InvokeDynamic REF_invokeStatic:java/lang/invoke/StringConcatFactory.makeConcatWithConstants:"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":makeConcatWithConstants:"(Ljava/lang/String;)Ljava/lang/String;" {
String "String"
};
areturn;
}
causes the jasm failure:
NEAR: LBRACE
ITestInterfaceA.jasm:48: Error: Value expected.
invokedynamic InvokeDynamic REF_invokeStatic:java/lang/invoke/StringConcatFactory.makeConcatWithConstants:"(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;":makeConcatWithConstants:"(Ljava/lang/String;)Ljava/lang/String;" {
^
ITestInterfaceA.jasm:191: Error: class file version expected
public static final InnerClass Lookup=class java/lang/invoke/MethodHandles$Lookup of class java/lang/invoke/MethodHandles;
^
ITestInterfaceA.jasm:193: Error: class file version expected
} // end Class ITestInterfaceA
^
3 errors
Nested static arguments syntax of invokedynamic instruction isn't supported.