Declared fields of java.lang.reflect.Field not supported in higher JDK than JDK8
Field modifiersField = Field.class.getDeclaredField("modifiers");
This line in AbstractHttpClient.java has compatibility issue with higher version of Java. It works fine in JDK8 but it does not works for JDK15. Also there are chances that its not supported from JDK12. It throws error like
I am not sure from which higher version of JDK it is not working. We need to find any generic solution to support all higher versions of JDK.
Following is the link of bug which I could find out