[
https://issues.apache.org/jira/browse/GROOVY-7913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Wagenleitner resolved GROOVY-7913.
---------------------------------------
Resolution: Fixed
Assignee: John Wagenleitner
Fix Version/s: 2.4.8
Thanks for reporting the issue. I believe the fix for GROOVY-7683 will fix the
issue, but please re-open if you find that to not be the case.
> ClassInfo.globalClassValue lead to GroovyClassLoader can't unload classes
> --------------------------------------------------------------------------
>
> Key: GROOVY-7913
> URL: https://issues.apache.org/jira/browse/GROOVY-7913
> Project: Groovy
> Issue Type: Bug
> Components: class generator
> Affects Versions: 2.4.6
> Reporter: chenxiaojie
> Assignee: John Wagenleitner
> Fix For: 2.4.8
>
>
> org.codehaus.groovy.reflection.ClassInfo:
> {code}
> private static final GroovyClassValue<ClassInfo> globalClassValue =
> GroovyClassValueFactory.createGroovyClassValue(new ComputeValue<ClassInfo>(){
> @Override
> public ClassInfo computeValue(Class<?> type) {
> ClassInfo ret = new ClassInfo(type);
> globalClassSet.add(ret);
> return ret;
> }
> });
> {code}
> dynamic load groovy classes will be cached in globalClassValue
> can't unload classes
> cause java.lang.OutOfMemoryError: PermGen space
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)