Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

NoSuchFieldError when debugging in IntelliJ #48

Open
barneyb opened this issue Jul 18, 2014 · 0 comments
Open

NoSuchFieldError when debugging in IntelliJ #48

barneyb opened this issue Jul 18, 2014 · 0 comments

Comments

@barneyb
Copy link

barneyb commented Jul 18, 2014

When debugging code that uses @Ensures in IntelliJ, I always receive a NoSuchFieldError from within the $_gc_computeOldVariables method for the __timeStamp__NNN_neverHappenNNNNNNNNNNNNN field that Groovy automatically adds to the underlying bytecode when compiling a class. The only solution I have found is to comment out the @Ensures annotations while debugging, and then uncomment them when I'm done.

I cracked open the generated bytecode with jd to look at what was happening, and nothing seemed inherently amiss, though I'm wondering if it's due to the fact that the timestamp fields are static, and not instance members?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant