zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2.04k stars 592 forks source link

Bogus endpoint comparison in Java OutgoingConnectionFactory #2823

Closed pepone closed 15 hours ago

pepone commented 1 day ago

We should use equals to do a value comparison, instead of comparing references.

https://github.com/zeroc-ice/ice/blob/c2e07e9bee33ea3a19396dfe1d1fc202b11e65b9/java/src/Ice/src/main/java/com/zeroc/IceInternal/OutgoingConnectionFactory.java#L276

This can result in the connection adapter not being updated for existing outgoing connections.

pepone commented 15 hours ago

Fix #2829