bug: JDK17下Patch方法报错 java.lang.reflect.InaccessibleObjectException: #3613
-
|
代码如下: 传入patch方法时报错: |
Beta Was this translation helpful? Give feedback.
Answered by
looly
Jun 11, 2024
Replies: 1 comment
-
|
Hutool为了让JDK支持patch方法,通过反射修改了 你可以:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mujio-killer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hutool为了让JDK支持patch方法,通过反射修改了
java.net.HttpURLConnection中的数组,JDK17中对反射使用做了严格限制,导致反射失败。你可以: