Skip to content

Commit

Permalink
Make invokeDefaultMethod accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jan 10, 2024
1 parent daebaca commit 6e59f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retrofit/src/main/java/retrofit2/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ public Object invokeDefaultMethod(
invokeDefaultMethod =
InvocationHandler.class.getMethod(
"invokeDefault", Object.class, Method.class, Object[].class);
invokeDefaultMethod.setAccessible(true);
this.invokeDefaultMethod = invokeDefaultMethod;
}
return invokeDefaultMethod.invoke(null, proxy, method, args);
Expand Down

0 comments on commit 6e59f52

Please sign in to comment.