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 2020/03/28 08:03:57 UTC
[groovy] branch danielsun/address-github-actions-errors updated:
Try to fix the failing build - 4
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch danielsun/address-github-actions-errors
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/danielsun/address-github-actions-errors by this push:
new 1f78c69 Try to fix the failing build - 4
1f78c69 is described below
commit 1f78c69702b89152486ec1ecf1f2137bfd807f8d
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Mar 28 16:03:09 2020 +0800
Try to fix the failing build - 4
---
src/main/java/org/codehaus/groovy/reflection/CachedClass.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/reflection/CachedClass.java b/src/main/java/org/codehaus/groovy/reflection/CachedClass.java
index 0f4314d..c4740d8 100644
--- a/src/main/java/org/codehaus/groovy/reflection/CachedClass.java
+++ b/src/main/java/org/codehaus/groovy/reflection/CachedClass.java
@@ -379,7 +379,9 @@ public class CachedClass {
if (metaClass.getClass() == MetaClassImpl.class) {
classInfo.setStrongMetaClass(null);
updateSetNewMopMethods(arr);
- classInfo.setStrongMetaClass(new MetaClassImpl(metaClass.getTheClass()));
+ MetaClassImpl mci = new MetaClassImpl(metaClass.getTheClass());
+ mci.initialize();
+ classInfo.setStrongMetaClass(mci);
return;
}