-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Illegal reflective access by org.springframework.cglib.core.ReflectUtils #24857
Comments
The warning disappear if I comment |
The doc https://docs.spring.io/spring-boot/docs/1.5.16.RELEASE/reference/html/using-boot-devtools.html#using-boot-devtools |
You've described the problem as a regression and that it is occurring after upgrading some Spring dependencies. What version were you using before and what version have you upgraded to?
That documentation is for Spring Boot 1.5.16 which predates the
Using Devtools changes the class loaders that are involved. I can't say exactly why it is triggering the warning, but that is a likely cause. To be more precise, we'll need some more information about the problem. To that end, can you please provide a minimal sample that reproduces it? You can share it with us by zipping it up and attaching it to this issue or by pushing it to a separate repository on GitHub. |
Many thanks for the quick and correct answer, unfortunately I can't work on that until a few days, I'll ping you when I'll submit a reproducer. |
@jhoeller has added a new method in Spring Framework 5.3.4 (see spring-projects/spring-framework#26403) so we'll have to wait for that to be able to benefit from the fix. I was able to easily reproduce the warning with instructions from Juergen but, unfortunately, I didn't manage to assert on the presence or absence of the warning as it seems to be logged outside of the test boundary. I've created a branch that switches to the snapshot (see #24884) and apply the fix. With that in place the warning is gone. For those interested the branch is: https://github.com/snicoll/spring-boot/tree/gh-24857 |
This commit improves RestartClassLoader to use a method introduced in SmartClassLoader to avoid triggering a warning on Java 11 and later. See spring-projects/spring-framework#26403 Closes spring-projectsgh-24857
note: I also upgraded to gradle 6.8
I get this warning on server launch after having updated spring dependencies.
The text was updated successfully, but these errors were encountered: