skip test for parallel class loader in Java 9 due to inaccessibility of needed method
@@ -67,6 +67,7 @@ public class UIMAClassLoaderTest extends TestCase {
while (!(classOfLoader.getName().equals("java.lang.ClassLoader"))) {
classOfLoader = classOfLoader.getSuperclass();
}
+ if (!Misc.isJava9ea) { // skip for java 9
Method m = classOfLoader.getDeclaredMethod("getClassLoadingLock", String.class);
m.setAccessible(true);
Object o = m.invoke(cl, "someString");
@@ -74,6 +75,7 @@ public class UIMAClassLoaderTest extends TestCase {
assertTrue(o != o2);
assertTrue(cl != o);
}
+ }
public void testAdvancedRsrcMgrCLassLoaderCreation() throws Exception {
ResourceManager rsrcMgr = UIMAFramework.newDefaultResourceManager();
