commit | 9e13cc8ad982ba191400889bb8e5248a1933d45e | [log] [tgz] |
---|---|---|
author | Joshua Bloch <jjb@google.com> | Wed Dec 16 18:01:32 2009 -0800 |
committer | Joshua Bloch <jjb@google.com> | Wed Dec 16 18:01:32 2009 -0800 |
tree | bae6fc946292946b8c64dbd1d95c790b5fbf9b73 | |
parent | 5e8308c9b352c56eb2cfdb369cb4514cb0a09c1d [diff] |
Fixed a bug int the new version of Long.reverse introduce in change Id6bd7c81. The corresponding code in Hacker's Delight is written in C, which supports unsigned numbers. In Java, it's essential to use explicit unsigned shifts, but I neglected to do so. This bug was caught by jtreg test java.lang.Long.BitTwiddle (which I wrote in 2003). This preexisting test serves as the regression test for this change.