Skip to content

Commit

Permalink
fix: exception example being unverifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanji144 committed Dec 9, 2023
1 parent 52048e1 commit 88c6480
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
.super java/lang/Object
.class public super Example {
.method public exampleMethod ()LExample; {
parameters: { this },
exceptions: { { A, A, B, * } },
exceptions: { { A, B, C, * } },
code: {
A:
iconst_1
istore value
goto C
iload value
ifeq D
B:
astore ex
new java/lang/Throwable
dup
invokespecial java/lang/Throwable.<init> ()V
athrow
C:
astore ex
D:
aload this
areturn
D:
E:
}
}
}

0 comments on commit 88c6480

Please sign in to comment.