Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.13
-
None
Description
A read-only array-backed ByteBuffer fails to encode, because the backing array is not accessible.
Hex.encodeHex(ByteBuffer.wrap(new byte[]{1}).asReadOnlyBuffer())
java.nio.ReadOnlyBufferException at java.nio.ByteBuffer.array(ByteBuffer.java:996) at org.apache.commons.codec.binary.Hex.encodeHex(Hex.java:213) at org.apache.commons.codec.binary.Hex.encodeHex(Hex.java:172) at org.apache.commons.codec.binary.Hex.encodeHex(Hex.java:140)
Attachments
Issue Links
- relates to
-
CODEC-259 Broken direct java.nio.ByteBuffer support in org.apache.commons.codec.binary.Hex
- Resolved