|
|
|
@ -254,7 +254,7 @@ public class SingleConnectionFactory extends DelegatingConnectionFactory |
|
|
|
return switch (method.getName()) { |
|
|
|
return switch (method.getName()) { |
|
|
|
// Only consider equal when proxies are identical.
|
|
|
|
// Only consider equal when proxies are identical.
|
|
|
|
case "equals" -> proxy == args[0]; |
|
|
|
case "equals" -> proxy == args[0]; |
|
|
|
// Use hashCode of PersistenceManager proxy.
|
|
|
|
// Use hashCode of Connection proxy.
|
|
|
|
case "hashCode" -> System.identityHashCode(proxy); |
|
|
|
case "hashCode" -> System.identityHashCode(proxy); |
|
|
|
case "unwrap" -> this.target; |
|
|
|
case "unwrap" -> this.target; |
|
|
|
// Handle close method: suppress, not valid.
|
|
|
|
// Handle close method: suppress, not valid.
|
|
|
|
|