6.1.5 Numeric Promotion and Casting

thumb
byte b = 1; short s = -b; System.out.println(b);
Status:
Fixed
Fixedinbuild:
1.9
Newtext:
byte b = 1; short s = -b; System.out.println(s);
Comments:
It should print s instead of b.
Reportedby:
Fedor Lvovich Dobrotvorskii

 Back