diff options
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/test/javassist/bytecode/BytecodeTest.java | 10 |
2 files changed, 5 insertions, 7 deletions
@@ -126,6 +126,8 @@ <configuration> <source>1.6</source> <target>1.6</target> + <testSource>1.7</testSource> + <testTarget>1.7</testTarget> </configuration> </plugin> <plugin> diff --git a/src/test/javassist/bytecode/BytecodeTest.java b/src/test/javassist/bytecode/BytecodeTest.java index 4fbd4fb2..b918750f 100644 --- a/src/test/javassist/bytecode/BytecodeTest.java +++ b/src/test/javassist/bytecode/BytecodeTest.java @@ -814,13 +814,9 @@ public class BytecodeTest extends TestCase { cf.addAttribute(new BootstrapMethodsAttribute(cp, bms)); cc.writeFile(); - try { - Object obj = make(cc.getName()); - assertEquals(9, invoke(obj, "test")); - } - catch (ClassFormatError e) { - System.out.println("Indy: " + e); - } + + Object obj = make(cc.getName()); + assertEquals(9, invoke(obj, "test")); ClassPool cp2 = new ClassPool(); cp2.appendClassPath("."); |