groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch master updated: Tweak test
Date Tue, 17 Dec 2019 11:01:57 GMT
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 <sunlan@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)


Mime
View raw message