1.1 --- a/rt/vm/src/test/java/org/apidesign/vm4brwsr/StaticMethodTest.java Tue Feb 26 16:54:16 2013 +0100
1.2 +++ b/rt/vm/src/test/java/org/apidesign/vm4brwsr/StaticMethodTest.java Thu Feb 28 07:48:54 2013 +0100
1.3 @@ -18,6 +18,7 @@
1.4 package org.apidesign.vm4brwsr;
1.5
1.6 import static org.testng.Assert.*;
1.7 +import org.testng.annotations.AfterClass;
1.8 import org.testng.annotations.BeforeClass;
1.9 import org.testng.annotations.Test;
1.10
1.11 @@ -324,10 +325,14 @@
1.12 private static TestVM code;
1.13
1.14 @BeforeClass
1.15 - public void compileTheCode() throws Exception {
1.16 + public static void compileTheCode() throws Exception {
1.17 StringBuilder sb = new StringBuilder();
1.18 code = TestVM.compileClass(sb, "org/apidesign/vm4brwsr/StaticMethod");
1.19 }
1.20 + @AfterClass
1.21 + public static void releaseTheCode() {
1.22 + code = null;
1.23 + }
1.24
1.25 private void assertExec(
1.26 String msg, Class<?> clazz, String method,