hornetq/hornetq — pull request #1833 by normanmaurer (2014-09-11 05:05:58+00:00)
Title: HORNETQ-1406 - Correctly handle direct buffers when detect protocol to u...

...se

Motivation:

The current code did not work with direct buffers as this expected to be able to access the backing array.

Modifications:

Read directly into a byte array and so make it work with all flavors of ByteBuf.

Result:

No more UnsupportedOperationException when direct buffers are used.