aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime/src/test
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-02-08 15:13:07 -0800
committerAndy Clement <aclement@pivotal.io>2019-02-08 15:13:07 -0800
commitc89830fe880f329b6289be06314684edc094012c (patch)
tree63dbaaa792ebd06d74639fc6b8be16c1af3f0e05 /loadtime/src/test
parentce1533d8493277d1111005e890f076ef90b32eab (diff)
downloadaspectj-c89830fe880f329b6289be06314684edc094012c.tar.gz
aspectj-c89830fe880f329b6289be06314684edc094012c.zip
tidyup
Diffstat (limited to 'loadtime/src/test')
-rw-r--r--loadtime/src/test/java/org/aspectj/weaver/loadtime/JRockitAgentTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/loadtime/src/test/java/org/aspectj/weaver/loadtime/JRockitAgentTest.java b/loadtime/src/test/java/org/aspectj/weaver/loadtime/JRockitAgentTest.java
index b13ebe421..9ed540d17 100644
--- a/loadtime/src/test/java/org/aspectj/weaver/loadtime/JRockitAgentTest.java
+++ b/loadtime/src/test/java/org/aspectj/weaver/loadtime/JRockitAgentTest.java
@@ -25,6 +25,7 @@ import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
import org.aspectj.util.FileUtil;
+import org.aspectj.util.LangUtil;
import junit.framework.TestCase;
@@ -53,6 +54,10 @@ public class JRockitAgentTest extends TestCase {
}
public void testJrockitRecursionProtection() {
+ if (LangUtil.is11VMOrGreater()) {
+ // Skip test, not castable to URLClassLoader
+ return;
+ }
URLClassLoader thisLoader = (URLClassLoader) getClass().getClassLoader();
URL jrockit = FileUtil.getFileURL(new File("../lib/ext/jrockit/jrockit.jar"));
URL[] urls = new URL[] {jrockit};