objectweb-asm/0001-Catch-CompileException-in-test.patch
2021-02-19 15:59:24 +00:00

27 lines
1.2 KiB
Diff

From feff2c9f3e5bc3a9900ac0ce7dfb9e9c2ce3e505 Mon Sep 17 00:00:00 2001
From: Mat Booth <mat.booth@redhat.com>
Date: Fri, 19 Feb 2021 15:36:30 +0000
Subject: [PATCH] Catch CompileException in test
---
asm-util/src/test/java/org/objectweb/asm/util/ASMifierTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/asm-util/src/test/java/org/objectweb/asm/util/ASMifierTest.java b/asm-util/src/test/java/org/objectweb/asm/util/ASMifierTest.java
index b097b58..adfde2c 100644
--- a/asm-util/src/test/java/org/objectweb/asm/util/ASMifierTest.java
+++ b/asm-util/src/test/java/org/objectweb/asm/util/ASMifierTest.java
@@ -107,8 +107,8 @@ public class ASMifierTest extends AsmTest {
}
private static byte[] compile(final String name, final String source) throws IOException {
- Parser parser = new Parser(new Scanner(name, new StringReader(source)));
try {
+ Parser parser = new Parser(new Scanner(name, new StringReader(source)));
UnitCompiler unitCompiler = new UnitCompiler(parser.parseCompilationUnit(), ICLASS_LOADER);
return unitCompiler.compileUnit(true, true, true)[0].toByteArray();
} catch (CompileException e) {
--
2.28.0