[PATCH] Add compareToUnsigned to java.nio.*Buffer

Robert Stupp snazy at snazy.de
Tue Apr 24 12:51:45 UTC 2018

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().


Robert Stupp

More information about the core-libs-dev mailing list