[ https://issues.apache.org/jira/browse/GROOVY-7484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643005#comment-14643005 ]
Jochen Theodorou commented on GROOVY-7484: ------------------------------------------ you mean instead of{codeJava} loop begin return new URLClassLoader(new URL[]{ getClass().getClassLoader().getResource("groovy-all-2.4.3-indy.jar"), getClass().getClassLoader().getResource("groovy-permgen-leak-testbean-1.0-SNAPSHOT.jar"), }, null); loop end {code} you did {code:Java} URLClassLoader parent = new URLClassLoader(new URL[]{getClass().getClassLoader().getResource("groovy-all-2.4.3-indy.jar"),},null); loop begin return new URLClassLoader(new URL[]{getClass().getClassLoader().getResource("groovy-permgen-leak-testbean-1.0-SNAPSHOT.jar")}, parent); loop end {code} Like that? I mean especially having parent out of the loop? > Permgen leak when load groovy classes via reflection > ---------------------------------------------------- > > Key: GROOVY-7484 > URL: https://issues.apache.org/jira/browse/GROOVY-7484 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.3 > Reporter: Dmitry Baev > > PermGen leak when load groovy beans via reflection using different class > loaders. Sample project to reproduce the problem > https://github.com/baev/groovy-permgen-leak -- This message was sent by Atlassian JIRA (v6.3.4#6332)