-
Bug
-
Resolution: Done
-
Major
-
9.0.0.Final
-
None
The java.io.ObjectInput#read() javadoc says implementations should return -1 if the end of the stream is reached, but BytesObjectInput throws an ArrayIndexOutOfBoundsException.
Actually, read() is only used because ExternalJBossMarshaller.JBossByteInput doesn't implement read(byte[]). This makes unmarshalling of external objects slower than it should be, because InputStream.read(byte[]) fills the buffer by repeatedly calling read().