netty5/transport/src
Norman Maurer ea94336689 DefaultChannelHandlerInvoker should work with non AbstractChannelHandlerContext sub-classes.
Motivation:

DefaultChannelHandlerInvoker currently blindly cast to AbstractChannelHandlerContext without checking if the ChannelHandlerContext is really a sub-type of it. It should check it first and if not just use slow-path implementation.

Modifications:

Do instanceof check first and if it fails just create a new Runnable instance of used the cached.

Result:

DefaultChannelHandlerInvoker works with any ChannelHandlerContext implementations.
2016-04-05 13:21:07 +02:00
..
main/java/io/netty DefaultChannelHandlerInvoker should work with non AbstractChannelHandlerContext sub-classes. 2016-04-05 13:21:07 +02:00
test/java/io/netty ChannelInitializer: change propagation of channelRegistered event 2016-03-31 09:01:00 +02:00