Would anyone please reopen JDK-4991002?
Mitsuru Kariya
mitsuru.kariya at oss.nttdata.com
Tue May 11 13:11:00 UTC 2021
Hi,
While reading the source for SerialBlob, I found that
SerialBlob.position() does not work correctly.
So, I searched JBS and found the description in JDK-4991002 point 1, but
it was closed by Cannot Reproduce.
It can be reproduced easily like below.
SerialBlob sb = new SerialBlob(new byte[]{1, 2, 3, 4, 5});
System.out.println(sb.position(new byte[]{1, 3, 5}, 1));
It should output "-1"(not found) but the current implementation outputs
"3"(found at position 3).
So, would anyone please reopen JDK-4991002 for me?
(I cannot reopen it because I don't have an Author role.)
Furthermore, SerialClob has same problem and JDK-4991036 describes it.
So, may I fix it together?
Or do I need to separate the PR from JDK-4991002?
JDK-4991002:The class javax.sql.rowset.serial.SerialBlob is too buggy
https://bugs.openjdk.java.net/browse/JDK-4991002
JDK-4991036:The class javax.sql.rowset.serial.SerialClob is too buggy
https://bugs.openjdk.java.net/browse/JDK-4991036
Please let me know if there is a better place to do so.
Thanks
More information about the core-libs-dev
mailing list