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:03:19 UTC

[groovy] branch GROOVY_3_0_X updated: Tweak test

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

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


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

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

    Tweak test
    
    (cherry picked from commit e32d6fa0572f8f6288b36a60aded5856be2919ba)
---
 .../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)