Skip to content
Permalink
Browse files

Fix issue when parsing method handle references

  • Loading branch information...
JesusFreke committed Aug 26, 2019
1 parent 14dc373 commit 4cf7ce758ea0c92974891eb489dca702781e7b16
@@ -36,3 +36,9 @@

invoke-virtual {v3, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
.end method

.method public static invokeCustomWithMethodHandleArgument([Ljava/lang/String;)V
.registers 15

invoke-custom {v0, v1}, call_site_2("doSomething", (LCustom;Ljava/lang/String;)Ljava/lang/String;, invoke-static@Lnonsense;->somemethod()V)@LBootstrapLinker;->normalLink(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/CallSite;
.end method
@@ -538,7 +538,7 @@ method_handle_reference returns[ImmutableMethodHandleReference methodHandle]
};

method_handle_literal returns[ImmutableMethodHandleReference value]
: (I_ENCODED_METHOD_HANDLE method_handle_reference) {
: ^(I_ENCODED_METHOD_HANDLE method_handle_reference) {
$value = $method_handle_reference.methodHandle;
};

0 comments on commit 4cf7ce7

Please sign in to comment.
You can’t perform that action at this time.