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

Correct "Illegal Reflective Access" Warnings #65

Open
kdavisk6 opened this issue Mar 28, 2021 · 0 comments
Open

Correct "Illegal Reflective Access" Warnings #65

kdavisk6 opened this issue Mar 28, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@kdavisk6
Copy link
Member

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.

@kdavisk6 kdavisk6 added the bug Something isn't working label Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant