[ 
https://issues.apache.org/jira/browse/GROOVY-10819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-10819.
------------------------------

> Meta class registry corruption leads 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
>             Fix For: 4.0.7
>
>
> Consider the following:
> {code:groovy}
> @groovy.transform.CompileStatic
> void test() {
>   String.getMetaClass().methodName = {
>     // ...
>   }
>   "foo".methodName()
> }
> {code}
> After executing this, the {{ClassInfo}} registry contains an entry 
> java.lang.String: \{theClass: java.lang.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)

Reply via email to