From 88c64804349639a5bc44422371f977dbded98eab Mon Sep 17 00:00:00 2001 From: Justus Garbe Date: Sat, 9 Dec 2023 12:42:34 +0100 Subject: [PATCH] fix: exception example being unverifiable --- .../resources/samples/jasm/Example-exception.jasm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jasm-composition-jvm/src/test/resources/samples/jasm/Example-exception.jasm b/jasm-composition-jvm/src/test/resources/samples/jasm/Example-exception.jasm index 20e53dda..bec95fc2 100644 --- a/jasm-composition-jvm/src/test/resources/samples/jasm/Example-exception.jasm +++ b/jasm-composition-jvm/src/test/resources/samples/jasm/Example-exception.jasm @@ -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. ()V + athrow C: + astore ex + D: aload this areturn D: + E: } } } \ No newline at end of file