任务单 #20056

Illegal result of cast.

开放日期: 2009-12-30 00:25 最后更新: 2010-03-05 23:59

报告人:
属主:
类型:
状态:
关闭
里程碑:
优先:
9 - Highest
严重性:
9 - Highest
处理结果:
Fixed
文件:

Details

Cast result of float -> int is incorrect.

public class FloatCastTest
{
  public static void main(String[] args) throws Exception
  {
    float f = Integer.MAX_VALUE + 0.0f;
    int i = (int) f;
    System.out.println("f=" + f + " i=" + i);
  }
}

Results:

f=2.1474836E9 i=-2147483648

任务单历史 (3/4 Histories)

2009-12-30 00:25 Updated by: freebeans
  • New Ticket "Illegal result of cast." created
2009-12-30 00:25 Updated by: freebeans
  • 严重性 Update from 5 - Medium to 9 - Highest
2010-02-02 01:46 Updated by: freebeans
  • 处理结果 Update from to Fixed
  • 里程碑 Update from (无) to jvm0.4.8
评论

Fixed f2i, d2i, d2f, d2l instructions.

2010-03-05 23:59 Updated by: freebeans
  • 状态 Update from 开启 to 关闭
  • Ticket Close date is changed to 2010-03-05 23:59

Attachment File List

No attachments

编辑

Please login to add comment to this ticket » 登录名