RFR: 8266320: (bf) ReadOnlyBufferException in heap buffer put(String, int, int) should not be conditional

Philippe Marschall github.com+471021+marschall at openjdk.java.net
Sat May 1 13:21:50 UTC 2021


On Fri, 30 Apr 2021 15:25:40 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>  would expect this case to be covered by an existing test already.

Upon closer inspection this line seems to cover it already. It also establishes the existing behavior to be throwing `ReadOnlyBufferException` and not `BufferOverflowException`. Should I undo the added test in `Basic-X.java.template` and not add the bug id to `Basic.java`?

https://github.com/openjdk/jdk/blob/5c083e8560ce9cc78615e3149a558206724cff53/test/jdk/java/nio/Buffer/Basic-X.java.template#L1003

-------------

PR: https://git.openjdk.java.net/jdk/pull/3809


More information about the nio-dev mailing list