ConfineMetaClassChanges leaks metaClass change #689

berdario opened this Issue Jan 25, 2017 · 0 comments


None yet
1 participant

Issue description

A clear and concise description.
Make sure you choose the correct label as well (bug or enhancement)

A metaClass change that should be confined with ConfineMetaClassChanges leaks and causes a test failure in other tests

How to reproduce:

Link to a gist or similar (optional)

Commit with the relevant snippets:


Additional Environment information

Version of your build tool(if used), Java, Groovy, IDE, OS etc

Grails 2


openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.10.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

Groovy version

Note that versions older than 2.0 are no longer supported.


Build tool version

Grails 2.5.5

Operating System


Grails 2 is unsupported, but this error should be impossible, whatever framework one is using. I hoped that the Grails developers would be able to shine some light upon the machinery that's causing ConfineMetaClassChanges to not work as expected, but maybe the sample project is enough for you to understand what's going wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment