待辦事項 #20056

Illegal result of cast.

啟用日期: 2009-12-30 00:25 最後更新: 2010-03-05 23:59

回報者:
負責人:
類型:
狀態:
關閉
里程碑:
優先權:
9 - 最高
嚴重程度:
9 - 最高
處理結果:
修正
檔案:

細節

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

Ticket History (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 - 中 to 9 - 最高
2010-02-02 01:46 Updated by: freebeans
  • 處理結果 Update from to 修正
  • 里程碑 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 » 登入