ConfineMetaClassChanges leaks metaClass change #689

Open
berdario opened this Issue Jan 25, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@berdario

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:

secretescapes/grails-test-bug@a65fa39

Additional Environment information

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

Grails 2

Java/JDK

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.

2.4.6

Build tool version

Grails 2.5.5

Operating System

Linux


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