nuun-io / kernel

Nuun Kernel is an IOC component for creation of powerfull enterprise stack.
Other
8 stars 5 forks source link

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 2 years ago

Nyamiou commented 2 years ago

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 commented 2 years ago

HI @Nyamiou ,

ok I see the incriminated code ...

Do you use nuun via seedstack or from another way ?

Nyamiou commented 2 years ago

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 commented 2 years ago

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