You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/11/09 18:23:00 UTC
[jira] [Assigned] (GROOVY-10819) Meta class registry corruption leading to stack overflow
[ https://issues.apache.org/jira/browse/GROOVY-10819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles reassigned GROOVY-10819:
------------------------------------
Assignee: Eric Milles
> Meta class registry corruption leading to stack overflow
> --------------------------------------------------------
>
> Key: GROOVY-10819
> URL: https://issues.apache.org/jira/browse/GROOVY-10819
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Critical
>
> Consider the following:
> {code:groovy}
> String.metaClass.methodName = {
> // ...
> }
> "foo".methodName()
> {code}
> After executing this, the {{ClassInfo}} registry contains an entry String: \{theClass:Class,...\}.
> As additional Groovy code is executed, {{PojoMetaClassSite}} entries can fail cache check and create a new {{CallSite}} and it too fails cache check and so on until stack overflow.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)