Fix a ClassCastException in EmbeddedMessageChannel

This commit is contained in:
Trustin Lee 2012-06-12 21:09:33 +09:00
parent a35aeb8cd9
commit 90b12ba5d2

View File

@ -17,14 +17,13 @@ package io.netty.channel.embedded;
import io.netty.buffer.ChannelBufType;
import io.netty.buffer.MessageBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandler;
import java.util.ArrayDeque;
public class EmbeddedMessageChannel extends AbstractEmbeddedChannel {
public EmbeddedMessageChannel(ChannelHandler... handlers) {
super(new ArrayDeque<Object>(), handlers);
super(Unpooled.messageBuffer(), handlers);
}
@Override