Description
The remoteHttpHost method of AbstractGenericHandler uses the ChannelContext to get a SocketAddress. It then casts it to InetSocketAddress but this is not the only implementation. Most notably, Netty's EmbeddedChannel will produce an incompatible EmbeddedSocketAddress which causes a class cast exception.
This is visible in unit tests, several of which now fail.
Attachments
For Gerrit Dashboard: JVMCBC-327 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
62949,2 | JVMCBC-327: Fix SocketAddress cast in generic handler | master | couchbase-jvm-core | Status: MERGED | +2 | +1 |
63470,2 | JVMCBC-327: Fix SocketAddress cast in generic handler | release12 | couchbase-jvm-core | Status: MERGED | +2 | +1 |