Skip to content

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

Closed

Description

@spring-projects-issues

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:

Activity

  1. spring-projects-issues commented on Nov 27, 2017

    @spring-projects-issues
    CollaboratorAuthor

    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.

  2. added
    type: enhancement
    in: core
    status: duplicate
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: duplicatetype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions