mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-02-17 04:01:48 -05:00
Fix lists being constructed in reverse
Well they still are, but they're reversed at the end.
This commit is contained in:
parent
636663274a
commit
384f8ca581
1 changed files with 7 additions and 0 deletions
|
@ -178,6 +178,13 @@ public class Java17ToJava8 implements IBytecodeTransformer {
|
|||
list.add(new InsnNode(Opcodes.POP));
|
||||
}
|
||||
list.add(new VarInsnNode(Opcodes.ALOAD, freeVarIndex));
|
||||
list.add(new InsnNode(Opcodes.DUP));
|
||||
list.add(new MethodInsnNode(
|
||||
Opcodes.INVOKESTATIC,
|
||||
"java/util/Collections",
|
||||
"reverse",
|
||||
"(Ljava/util/List;)V"
|
||||
));
|
||||
list.add(new MethodInsnNode(Opcodes.INVOKESTATIC, "java/util/Collections", "unmodifiableList", "(Ljava/util/List;)Ljava/util/List;"));
|
||||
}
|
||||
} else if (min.name.equals("copyOf")) {
|
||||
|
|
Loading…
Reference in a new issue