AmarGhugare opened a new pull request, #1880: URL: https://github.com/apache/commons-lang/pull/1880
The listener proxy returned by `EventListenerSupport.fire()` forwards `hashCode`, `equals`, and `toString` to registered listeners and returns null. Hashing or comparing the proxy therefore throws `NullPointerException`, including during duplicate detection and listener removal. `toString()` also returns null. Handle these methods locally using the proxy's identity, consistent with `EventUtils`. Event delivery and custom exception handling retain their existing behavior. No public API is added. Regression coverage includes empty and populated listener lists, Object methods never reaching listeners, HashSet operations, ArrayList removal, and a forwarding proxy registered with another EventListenerSupport. All three new regression executions fail before the fix. Validation: 24 focused event tests and Checkstyle pass. Full default Maven validation: 118160 tests, zero failures/errors, 29 skipped; coverage, license, Checkstyle, binary compatibility, SpotBugs, PMD, and Javadoc checks pass. Reproduced in 3.22.0 and current master. Jira filing is pending account approval. -- 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]
