feignx icon indicating copy to clipboard operation
feignx copied to clipboard

Correct "Illegal Reflective Access" Warnings

Open kdavisk6 opened this issue 3 years ago • 0 comments

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 avatar Mar 28 '21 20:03 kdavisk6