JeremySun0731 opened a new pull request, #1557: URL: https://github.com/apache/commons-lang/pull/1557
This change makes ReflectionDiffBuilder skip fields that cannot be accessed via reflection instead of failing fast with an exception. Previously, if reflective access to a field was denied (for example due to Java 9+ module restrictions or security constraints), the diff process would abort entirely. This prevented producing a partial diff even when most fields were accessible. The implementation is limited to appendFields(...), where reflection access failures are caught and ignored. This covers IllegalAccessException on Java 8 as well as runtime reflection failures on newer Java versions. No public APIs were changed. This keeps full Java 8 compatibility while improving robustness on restricted environments. Related issue: LANG-1711 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
