From dafd50b43c2a9bf835f2128865b2034bd44a1f64 Mon Sep 17 00:00:00 2001 From: chiba Date: Thu, 15 Nov 2012 17:54:38 +0000 Subject: [PATCH] fixed JASSIST-178 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@688 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- pom.xml | 2 ++ src/test/javassist/bytecode/BytecodeTest.java | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 509d9327..449bbd3d 100644 --- a/pom.xml +++ b/pom.xml @@ -126,6 +126,8 @@ 1.6 1.6 + 1.7 + 1.7 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("."); -- 2.39.5