Comipler Bug: Unnessesary cast to type long to for expression of type int [message #86313] |
Tue, 19 August 2003 04:29  |
Eclipse User |
|
|
|
Hello,
I believe I found an bug in the Java compiler, because:
final long lgLow32BitMask1 = ~(~(long) 0 << 32);
final long lgLow32BitMask2 = ~(~0 << 32);
System.out.println("lgLow32BitMask1: "+lgLow32BitMask1);
System.out.println("lgLow32BitMask2: "+lgLow32BitMask2);
prints out (for SUN JDK 1.4.200):
lgLow32BitMask1: 4294967295
lgLow32BitMask2: 0
and so the warning of the Comipler for the first line (and the assoicated
Quickfix):
Unnessesary cast to type long to for expression of type int
is not good.
I hope this message pleses somebody, if so: Please me and answer to my
postings to this group:
Repost: Message-Box: No user-editable completed tasks to delete
and Message-Box: No user-editable completed tasks to delete
Kind Regards
mle
|
|
|
|
Powered by
FUDForum. Page generated in 1.13550 seconds