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

ReflectUtils produces Warning in Spring Boot 2.0.0.M6 and Java 9.0.1 [SPR-16236] #20783

Closed
spring-projects-issues opened this issue Nov 27, 2017 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 27, 2017

Myungwoon Oh opened SPR-16236 and commented

I made a new Spring Boot 2.0.0.M6 + Java 9.0.1 project to study WebFlux.

When I run application, it runs without Error but with some Warnings related to ReflectUtils.

See https://gist.github.com/HomoEfficio/5075df52298baf8188e6847b0b9cf914#file-springboot2-java9-webflux-console-L18


Affects: 5.0.1

Reference URL: https://gist.github.com/HomoEfficio/5075df52298baf8188e6847b0b9cf914

Attachments:

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Nov 27, 2017

Juergen Hoeller commented

We are tracking this in #20414: It's simply our repackaged CGLIB trying its traditional (and fully backwards-compatible) code path first, falling back to a separate code path which happens to work fine on JDK 9 as well.

For the time being, the cleanest way out is to start your JVM with --illegal-access=deny. This may sound strange but actually rejects the traditional code path at runtime, enforcing the fallback variant, without any warning logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants