Google would like to contribute implementations of the methods below.
Here's a webrev:

http://cr.openjdk.java.net/~martin/webrevs/openjdk7/compare/

We have tests (not yet included) but they would need to be jtreg-ified.
Is there any junit support yet for jtreg?

Martin

On Wed, Sep 9, 2009 at 16:54, Stephen Colebourne<scolebou...@joda.org> wrote:
> 2009/9/9 Joe Darcy <joe.da...@sun.com>:
> The following are missing methods on Integer/Long:
>
> 7) Compare two primitives.
> int Byte.compare(byte value1, byte value2)
> int Short.compare(short value1, short value2)
> int Integer.compare(int value1, int value2)
> int Long.compare(long value1, long value2)
> Safely returns the comparison (-1/0/1) indicator for two primitives.
> (These methods already exist on Float/Double).

Reply via email to