You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/12/17 11:01:57 UTC

[groovy] branch master updated: Tweak test

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new e32d6fa  Tweak test
e32d6fa is described below

commit e32d6fa0572f8f6288b36a60aded5856be2919ba
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Dec 17 19:01:32 2019 +0800

    Tweak test
---
 .../transform/classloading/TransformsAndCustomClassLoadersTest.groovy  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/org/codehaus/groovy/transform/classloading/TransformsAndCustomClassLoadersTest.groovy b/src/test/org/codehaus/groovy/transform/classloading/TransformsAndCustomClassLoadersTest.groovy
index b5836a6..55be8d9 100644
--- a/src/test/org/codehaus/groovy/transform/classloading/TransformsAndCustomClassLoadersTest.groovy
+++ b/src/test/org/codehaus/groovy/transform/classloading/TransformsAndCustomClassLoadersTest.groovy
@@ -121,7 +121,8 @@ class TransformsAndCustomClassLoadersTest extends GroovyTestCase {
             if (name.startsWith(getClass().getPackage().name)) {
                 throw new ClassNotFoundException(name)
             }
-            if (name.startsWith("java.") || name.startsWith("groovy.") || name.startsWith("org.codehaus.groovy.")) {
+            if (name.startsWith("java.") || name.startsWith("groovy.")
+                    || name.startsWith("org.codehaus.groovy.") || name.startsWith("org.apache.groovy.")) {
                 return getClass().classLoader.loadClass(name, resolve)
             }
             throw new ClassNotFoundException(name)