Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

Commit 1418a45

Browse files
committed
Missing interface invoke
1 parent 5243f57 commit 1418a45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/raphimc/javadowngrader/transformer/j11/methodcallreplacer/CompletableFutureExceptionallyAsyncMCR.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public InsnList getReplacement(ClassNode classNode, MethodNode method, String or
7777
Type.getType("(Ljava/lang/Object;Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;")
7878
));
7979
replacement.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "java/util/concurrent/CompletableFuture", "handle", "(Ljava/util/function/BiFunction;)Ljava/util/concurrent/CompletableFuture;"));
80-
replacement.add(new MethodInsnNode(Opcodes.INVOKESTATIC, "java/util/function/Function", "identity", "()Ljava/util/function/Function;"));
80+
replacement.add(new MethodInsnNode(Opcodes.INVOKESTATIC, "java/util/function/Function", "identity", "()Ljava/util/function/Function;", true));
8181
replacement.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "java/util/concurrent/CompletableFuture", "thenCompose", "(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;"));
8282

8383
return replacement;

0 commit comments

Comments
 (0)