pekko/akka-actor-tests
Doug Roper 8286ecffc5 Fix MultiByteArrayIterator.copyToArray silently drops bytes. #16303 (#25141)
I just got burned by #16303.

Answering https://github.com/akka/akka/issues/16303#issuecomment-62957914, it looks like `copyToArray[B >: Byte](Array[B])` can't call `getBytes(Array[Byte], Int, Int)` due to the type constraint (defined by `GenTraversableOnce`).

Instead, I'm going with the simple `isEmpty` solution proposed in the description of #16303 by @kpatrick-kixeye.
2018-05-24 16:11:50 +09:00
..
src/test Fix MultiByteArrayIterator.copyToArray silently drops bytes. #16303 (#25141) 2018-05-24 16:11:50 +09:00