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

ClassFormatError (_ebean_newInstanceReadOnly): Occasionally enhancement produces duplicate method #2850

Open
jnehlmeier opened this issue Sep 28, 2022 · 0 comments

Comments

@jnehlmeier
Copy link

Actual behavior

java.lang.ClassFormatError: Duplicate method name "_ebean_newInstanceReadOnly" with signature "()Ljava.lang.Object;" in class file xxxxxx

Steps to reproduce

I can not reproduce it yet, however I have a feeling that it happens if git replaces source files on disk after switching branches or similar and then Gradle, using Ebean's Gradle plugin, enhances files.

Maybe carefully reading Ebean enhancement code could reveal the issue. The issue appeared after upgrading from 12.10.0 to 13.8.0 using Gradle 7.5.1.

When the issue appears I have to call gradle clean and recompile everything.

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

No branches or pull requests

1 participant