Skip to content

Correct "Illegal Reflective Access" Warnings #65

@kdavisk6

Description

@kdavisk6

Feignx replicates the same issue that exits in regular Feign, it uses methods for reflection that are no longer valid in JDK 9+. These must be addressed before later JDK version remove the warning and make them an error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Feign Interface that uses a default method
  2. Run the application on JDK 9+
  3. Observe the following error: Illegal reflective access by feign.proxy.GuardMethodHandler (file:...) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)

Expected behavior
That on JDK 9+ this error doesn't occur

Environment (please complete the following information):

  • JDK Version [9+]

Additional context
Since Feignx does not support JDK versions prior to 11, we can safely change to the updated method for obtaining this information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions