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 89fec7b5b6 Declare `thisType` as `transient` to avoid serialization
89fec7b5b6 is described below
commit 89fec7b5b60bef0e9d0be4ea183b88cc2283cbbf
Author: Daniel Sun <[email protected]>
AuthorDate: Sat Dec 28 00:15:13 2024 +0900
Declare `thisType` as `transient` to avoid serialization
---
src/main/java/groovy/lang/Closure.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/groovy/lang/Closure.java
b/src/main/java/groovy/lang/Closure.java
index 4ba76aa440..76dac621e7 100644
--- a/src/main/java/groovy/lang/Closure.java
+++ b/src/main/java/groovy/lang/Closure.java
@@ -290,7 +290,7 @@ public abstract class Closure<V> extends
GroovyObjectSupport implements Cloneabl
return thisObject;
}
- private Class<?> thisType;
+ private transient Class<?> thisType;
private Class<?> getThisType() {
Class<?> thisType = this.thisType;
if (thisType == null) {