代码拉取完成,页面将自动刷新
The value of a byte type variable should not exceed 127. But with the following test code, the output shows b exceeds 127:
public class Main {
public static void main(String[] args) {
byte b = 127;
System.out.println(b++);
System.out.println(b++);
System.out.println(b++);
}
}
The output is:
127
128
129
But it should be
127
-128
-127
@LuoYin @arkcompiler @BinaryFZ 看一下这个问题。应该很简单的。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
@yehandong 已在修改验证。
'short' and 'char' type variables also have the same problem, please fix the problem for these types as well.
byte,short,char都是由于类型信息丢失导致的,目前stack check还有点问题,正在修复
登录 后才可以发表评论