RFR: 8361299: (bf) CharBuffer.getChars(int,int,char[],int) violates pre-existing specification [v3]

Alan Bateman alanb at openjdk.org
Thu Jul 3 15:52:46 UTC 2025


On Thu, 3 Jul 2025 15:29:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> src/java.base/share/classes/java/nio/X-Buffer.java.template line 1907:
>> 
>>> 1905:      * {@code dstBegin} in the array. The position of this buffer is unchanged.
>>> 1906:      *
>>> 1907:      * <p> An invocation of this method behaves exactly the same was as the
>> 
>> I think we can use an implSpec for this and keep "This method is equivalent to".
>
>> I think we can use an implSpec for this and keep "This method is equivalent to".
> 
> I was following the existing convention elsewhere in the file.

I don't know why JDK-8343110 put the implSpec after the param/return/throws tags so happy it has been fixed. Maybe at some point we can use implSpec to these methods.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26104#discussion_r2183140295


More information about the nio-dev mailing list