-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b97
-
x86
-
windows_xp
A DESCRIPTION OF THE PROBLEM :
The Java Language Specification found at the following link is wrong:
http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.19
It contains an explanation on shift operators, saying that n>>s whould be the same as n/s. This is wrong. Actually it has to read that n>>s is n/(2^s).
I wonder why nobody noticed that before.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read the documentation and think about it.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See above.
ACTUAL -
See above.
REPRODUCIBILITY :
This bug can be reproduced always.
The Java Language Specification found at the following link is wrong:
http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.19
It contains an explanation on shift operators, saying that n>>s whould be the same as n/s. This is wrong. Actually it has to read that n>>s is n/(2^s).
I wonder why nobody noticed that before.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read the documentation and think about it.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See above.
ACTUAL -
See above.
REPRODUCIBILITY :
This bug can be reproduced always.