aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-09-28 00:51:15 +0900
committerchibash <chiba@javassist.org>2016-09-28 00:51:15 +0900
commitfb93ae8b8f6e0646ed9b95d4d8d0abe77d601a62 (patch)
tree4e7c46b44dfd861a084d3917de9fad4a7e883682 /src/test
parent9f1d7a2cf0408d92309145a3d63620d64206a38a (diff)
downloadjavassist-fb93ae8b8f6e0646ed9b95d4d8d0abe77d601a62.tar.gz
javassist-fb93ae8b8f6e0646ed9b95d4d8d0abe77d601a62.zip
improves the backward compatibility of LoaderClassPath.rel_3_21_0-java9-ea2
LoaderClassPath is modified to show the same behavior in both Java 8 and 9.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/javassist/JvstTest5.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java
index c1c10d9b..41b640c7 100644
--- a/src/test/javassist/JvstTest5.java
+++ b/src/test/javassist/JvstTest5.java
@@ -235,4 +235,11 @@ public class JvstTest5 extends JvstTestRoot {
Object obj = make(ctClass.getName());
assertEquals(1, invoke(obj, "run"));
}
+
+ public void testLoaderClassPath() throws Exception {
+ ClassPool cp = new ClassPool();
+ cp.appendClassPath(new LoaderClassPath(new Loader()));
+ assertNotNull(cp.get(Object.class.getName()));
+ assertNotNull(cp.get(this.getClass().getName()));
+ }
}