From 5755e1d80eba6cca1eca53dc26a9057f24e32100 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 18 Dec 2007 15:46:03 +0000 Subject: [PATCH] 166647 changed the error message to a lint --- .../testsrc/org/aspectj/tools/ajc/AjcTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java index 17d2e7fae..e034255ce 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java @@ -636,7 +636,6 @@ public class AjcTestCase extends TestCase { Class toRun = sandboxLoader.loadClass(className); Method mainMethod = toRun.getMethod("main",new Class[] {String[].class}); mainMethod.invoke(null,new Object[] {args}); - lastRunResult = new RunResult(command.toString(),new String(baosOut.toByteArray()),new String(baosErr.toByteArray())); } catch(ClassNotFoundException cnf) { fail("Can't find class: " + className); } catch(NoSuchMethodException nsm) { @@ -649,6 +648,7 @@ public class AjcTestCase extends TestCase { } finally { Thread.currentThread().setContextClassLoader(contexClassLoader); stopCapture(baosErr,baosOut); + lastRunResult = new RunResult(command.toString(),new String(baosOut.toByteArray()),new String(baosErr.toByteArray())); } return lastRunResult; } -- 2.39.5