Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
The spec of SerialBlob.setBinaryStream says "throws SerialException - if the SerialBlob in not instantiated with a Blob object that supports setBinaryStream()". So if the SerialBlob is instantiated with a byte buffer, it's supposed to throw SerialException. But following test shows that RI throws NullPointerException instead:
public void testSetBinaryStreamJ() throws Exception {
byte[] buf =
;
SerialBlob serialBlob = new SerialBlob(buf);
serialBlob.setBinaryStream(1);
}
As discussed in dev mailing list, Harmony will comply with spec, and won't follow RI for this case.
Best regards,
Andrew