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

IllegalAccessError: Update to static final field org.reflections.Reflections.log attempted from a different class (io.nuun.kernel.core.internal.KernelCore) than the field's declaring class #149

Open
Nyamiou opened this issue Aug 8, 2022 · 3 comments

Comments

@Nyamiou
Copy link

Nyamiou commented Aug 8, 2022

When using a recent version of reflections (https://github.com/ronmamo/reflections, 0.10 or newer) it crash with the error " java.lang.IllegalAccessError: Update to static final field org.reflections.Reflections.log attempted from a different class (io.nuun.kernel.core.internal.KernelCore) than the field's declaring class" because now the "log" field is final.

@ejemba
Copy link
Member

ejemba commented Aug 8, 2022

HI @Nyamiou ,

ok I see the incriminated code ...

Do you use nuun via seedstack or from another way ?

@Nyamiou
Copy link
Author

Nyamiou commented Aug 8, 2022

Via Seedstack. But Seedstack doesn't force the new version of the library. The thing is we also use Reflections in another one of our library for another one of our application that doesn't use Seedstack, so the version used is managed in our BOM also. To keep it short I upgraded the version in our BOM and broke our Seedstack applications.

We don't really need the newer versions of Reflections, so we'll just go back to the older version for now. But I wanted the issue to get traced so you guys can work on it when you have the time.

@ejemba
Copy link
Member

ejemba commented Aug 8, 2022

@Nyamiou Thank you for the feedback, I'll work on a fix when possible

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

2 participants