-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: exception example being unverifiable
- Loading branch information
1 parent
52048e1
commit 88c6480
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 10 additions & 1 deletion
11
jasm-composition-jvm/src/test/resources/samples/jasm/Example-exception.jasm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
} | ||
} | ||
} |