-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
I could not instantiate Fairy (Fairy.create()
) when testing JFairy for the first time today.
My config
- JDK 15 and 17
- Jfairy 0.6.4
- Spring Boot 2.5.6
Error
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/C:/Users/John/.m2/repository/com/google/inject/guice/4.2.0/guice-4.2.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
The problem seems to be that JFairy depends on these old versions:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-assistedinject</artifactId>
<version>4.2.0</version>
</dependency>
Upgrading to latest version 5.0.1 have solved the problem
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-assistedinject</artifactId>
<version>5.0.1</version>
</dependency>
This Guice Issue confirms this problem.
I recommend updating to newest version for Guice and Guice Assisted Inject
borzykin, k0mmsussert0d, zonaut and TomashGombosh
Metadata
Metadata
Assignees
Labels
No labels