Merge branch 'GP-0_ryanmkurtz_PR-6657_0x-Singularity_jdk22-build'

This commit is contained in:
Ryan Kurtz 2024-06-20 14:13:16 -04:00
commit b4ef357e53

View File

@ -33,15 +33,17 @@ public class PrivatelyQueuedListener<P> {
DataStructureErrorHandlerFactory.createListenerErrorHandler();
protected class ListenerHandler implements InvocationHandler {
private static final Method OBJECT_HASHCODE;
static {
private static final Method OBJECT_HASHCODE = initObjectHashCode();
private static Method initObjectHashCode() {
try {
OBJECT_HASHCODE = Object.class.getMethod("hashCode");
return Object.class.getMethod("hashCode");
}
catch (NoSuchMethodException | SecurityException e) {
throw new AssertionError(e);
}
}
protected final Class<P> iface;
public ListenerHandler(Class<P> iface) {