Skip to content

Commit

Permalink
(WIP) fix
Browse files Browse the repository at this point in the history
Co-authored-by: Evgeny Mandrikov <mandrikov@gmail.com>
Co-authored-by: Lukas Rössler <lukas.roessler@mysugr.com>
  • Loading branch information
Godin and poseidon-mysugr committed Dec 22, 2021
1 parent 081801f commit 2e27ddd
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -46,6 +46,12 @@ public void match(final String exceptionType,
}
cursor = start;
final JumpInsnNode jumpInsnNode = (JumpInsnNode) cursor;
final AbstractInsnNode next = cursor.getNext();
if (next != null && next.getOpcode() == Opcodes.POP) {
// Since Kotlin 1.6.0 - see
// https://github.com/JetBrains/kotlin/commit/041773fd2584bc279813361eb7fc11ae84c214fd
next();
}
nextIsType(Opcodes.NEW, exceptionType);
nextIs(Opcodes.DUP);
nextIs(Opcodes.LDC);
Expand Down

0 comments on commit 2e27ddd

Please sign in to comment.