groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blackd...@apache.org
Subject groovy git commit: JDK9: remove usage of URLClassLoader
Date Sun, 04 Sep 2016 13:40:33 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 9be5459c9 -> 25dba7705


JDK9: remove usage of URLClassLoader


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/25dba770
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/25dba770
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/25dba770

Branch: refs/heads/master
Commit: 25dba7705e38616697bd40279a9e9688815b31f7
Parents: 9be5459
Author: Jochen Theodorou <blackdrag@gmx.org>
Authored: Sun Sep 4 15:39:52 2016 +0200
Committer: Jochen Theodorou <blackdrag@gmx.org>
Committed: Sun Sep 4 15:39:52 2016 +0200

----------------------------------------------------------------------
 .../groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/25dba770/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
b/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
index 1cdeb7a..298e032 100644
--- a/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
+++ b/src/test/org/codehaus/groovy/runtime/m12n/ExtensionModuleHelperForTests.groovy
@@ -37,13 +37,7 @@ public class ExtensionModuleHelperForTests {
     }
     org.junit.runner.JUnitCore.main('TempTest')
 """
-        def cl = ExtensionModuleHelperForTests.classLoader
-        while (!(cl instanceof URLClassLoader)) {
-            cl = cl.parent
-            if (cl ==null) {
-                throw new RuntimeException("Unable to find class loader")
-            }
-        }
+
         Set<String> cp = System.getProperty("java.class.path").split(File.pathSeparator)
as Set
         cp << baseDir.absolutePath
 


Mime
View raw message