Details
Description
As of Mina 2.0.17, the line of code in CumulativeProtocolDecoder
private final AttributeKey BUFFER = new AttributeKey(getClass(), "buffer");
has been replaced with line
private static final AttributeKey BUFFER = new AttributeKey(CumulativeProtocolDecoder.class, "buffer");
When using an architecture where multiple decoders inherited from CumulativeProtocolDecoder are used, the decoders corrupt each other's data. The key for the attribute in line
IoBuffer buf = (IoBuffer) session.getAttribute(BUFFER);
has become the same for all decoders.