Missing specialization in CharBufferR.put(String, int, int)

Brian Burkhalter brian.burkhalter at oracle.com
Thu Apr 29 19:53:36 UTC 2021


Hello,

I created https://bugs.openjdk.java.net/browse/JDK-8266320 for this.

Thanks,

Brian

On Apr 29, 2021, at 11:47 AM, Philippe Marschall <kustos at gmx.net<mailto:kustos at gmx.net>> wrote:

Hello

CharBufferR.put(String, int, int) seems to be the only put* method in
CharBufferR that doesn't unconditionally throw ReadOnlyBufferException
but instead copies the superclass implementation.
This seems to have been introduced with JDK-8011135.

I think this would be relatively easy to fix in
Heap-X-Buffer.java.template by means of #if[rw] #else[rw]
similar to all the other put* methods.

If you agree this is a bug and should be fixed then I can come up with a
PR if somebody creates a JIRA.

[1] https://bugs.openjdk.java.net/browse/JDK-8011135

Cheers
Philippe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210429/858a9bcf/attachment.htm>


More information about the nio-dev mailing list