Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL: the number of constructors during runtime do not match #82

Closed
samrocketman opened this issue Jun 22, 2016 · 1 comment · Fixed by #83
Closed

FATAL: the number of constructors during runtime do not match #82

samrocketman opened this issue Jun 22, 2016 · 1 comment · Fixed by #83
Labels

Comments

@samrocketman
Copy link
Owner

...and compile time for java.lang.Exception do not match.

See http://blog.proxerd.pl/article/how-to-fix-incompatibleclasschangeerror-for-your-groovy-projects-running-on-jdk7

The simplest solution is to rewrite the exception classes as Java.

samrocketman added a commit that referenced this issue Jun 22, 2016
Groovy has a strange bug.  When you compile a library with JDK6 byte
code and try to run it on a JDK7 or higher JVM; the resulting error is
mismatched arguments for exceptions.

The problem is fully described in:
http://blog.proxerd.pl/article/how-to-fix-incompatibleclasschangeerror-for-your-groovy-projects-running-on-jdk7

The solution to avoid future incompatibilities is to rewrite the Groovy
exceptions as Java exceptions.

fixes #82
@samrocketman
Copy link
Owner Author

Groovy has a strange bug. When you compile a library with JDK6 byte code and try to run it on a JDK7 or higher JVM; the resulting error is mismatched arguments for exceptions.

The problem is fully described in:
http://blog.proxerd.pl/article/how-to-fix-incompatibleclasschangeerror-for-your-groovy-projects-running-on-jdk7

The solution to avoid future incompatibilities is to rewrite the Groovy exceptions as Java exceptions.

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

Successfully merging a pull request may close this issue.

1 participant