| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…methods (#4278) The findPubliclyAccessibleMethod algorithm only traversed superclasses when looking for a publicly accessible method. This caused InaccessibleObjectException on Java 16+ for non-public classes that implement public interfaces (e.g., TreeMap.Entry implementing Map.Entry), because the method was never found through the public interface and the fallback to setAccessible fails on JDK internal classes. Now the algorithm also checks interfaces implemented by each class in the hierarchy, finding methods declared on public interfaces like Map.Entry. https://claude.ai/code/session_0172bEhuTAQF3gcvxip6wz5K
| } | ||
| } | ||
| // Also search super-interfaces of non-public interfaces | ||
| Method method = findMethodOnPublicInterfaces(cacheKey, iface.getInterfaces(), methodName, dfeInUse, allowStaticMethods); |
There was a problem hiding this comment.
You allowing interfaces implementing interfaces - fair enough - but there is not tests for that
I think you need to create the complicated structure that tests this
Sorry, something went wrong.
Test ReportTest Results
Code Coverage (Java 25)
Changed Class Coverage (1 class)
|
Sorry, something went wrong.
Test that findMethodOnPublicInterfaces correctly traverses package-private intermediate interfaces to find methods declared on public super-interfaces. Covers linear chain (pkg-private -> public grandparent) and diamond inheritance patterns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cover the dfeInUse path and NoSuchMethodException fallthrough in findMethodOnPublicInterfaces. Raises PropertyFetchingImpl line coverage from 86.1% to 88.2%, above the 87.8% baseline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Summary
Test plan
https://claude.ai/code/session_01KSM9EgschAaxJVFeqM1enw