[PATCH] Add compareToUnsigned to java.nio.*Buffer
Paul Sandoz
paul.sandoz at oracle.com
Tue Apr 24 17:41:00 UTC 2018
Thanks. I attached your patch to the issue:
https://bugs.openjdk.java.net/browse/JDK-8202216 <https://bugs.openjdk.java.net/browse/JDK-8202216>
> On Apr 24, 2018, at 5:51 AM, Robert Stupp <snazy at snazy.de> wrote:
>
> Hi Paul,
>
> Thank you.
>
> I've filed an RFE via https://bugreport.java.com/bugreport/start_form.do - seems to be JDK-9053522. It just has no option to add an attachment and I have no login to bugs.openjdk.java.net .
>
>
> On 04/23/2018 11:16 PM, Paul Sandoz wrote:
>> The addition of mismatch is reasonable. I am unsure about compareToUnsigned, since we are trying to be a conservative about what we add to Buffer.
> On the one hand, it would be very nice to have compareToUnsigned() since the primitive wrapper classes have compareToUnsigned() as well. On the other hand, it would not be a big issue to build a similar functionality using *Buffer.mismatch().
>
Exactly.
Paul.
More information about the core-libs-dev
mailing list