The test helper ByteCodeHelper is used to copy from an input stream to a byte array, but isn’t dealing with the fact that not all bytes might be available on the first read. This leads occasionally to class definition errors, as this utility is being used for custom classloaders in integration tests. |