[
https://issues.apache.org/jira/browse/GROOVY-12109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun resolved GROOVY-12109.
---------------------------------
Fix Version/s: 6.0.0-alpha-2
Resolution: Fixed
> Harden Closure deserialization against owner/delegate reference cycle
> ---------------------------------------------------------------------
>
> Key: GROOVY-12109
> URL: https://issues.apache.org/jira/browse/GROOVY-12109
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 6.0.0-alpha-2
>
>
> A closure whose {{owner}}/{{delegate}}/{{thisObject}} references form a
> cycle serializes successfully but recurses without bound when the closure is
> later invoked.
>
>
>
>
>
> Add a defensive cycle check when deserializing the built-in serializable
> closure types, rejecting such graphs with an {{InvalidObjectException}}.
> Legitimate closure serialization (including curried and composed closures) is
> unaffected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)