Skip to main content

Possible 1.6 Bug?

No replies
briansun_vip
Offline
Joined: 2006-08-23
Points: 0

//JDK 6 beta2 for windows ia32
//The code will fail:

@Test
public void testShortInt() {
for(int i = 32768; i <= 65535; i++) {
int j = (short)(i & 0xffff);
Assert.assertTrue( j < 0 );
}
}