You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Signedness Checker emits a false positive error when the left operand of a casted (without an explicit signedness annotation) unsigned right shift expression is either a method parameter or field:
The Signedness Checker emits a false positive error when the left operand of a casted (without an explicit signedness annotation) unsigned right shift expression is either a method parameter or field:
Command:
javacheck -version -verbose -AprintAllQualifiers -processor SignednessChecker UnsignedRightShiftTestShort.java
Output:
UnsignedRightShiftTestShortOutput.txt
javacheck
alias:alias javacheck='$CHECKERFRAMEWORK/checker/bin/javac'
In particular, the line
byte b1 = (byte) (length >>> 24);
emits the false positive error. This line should be legal, according to section 18.2.2 Permitted Shifts in the user manual.The text was updated successfully, but these errors were encountered: