From: SourceForge.net <no...@so...> - 2005-05-13 22:05:29
|
Bugs item #1201685, was opened at 2005-05-13 17:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1201685&group_id=44253 Category: Interactions Group: Annoying Status: Open Resolution: None Priority: 5 Submitted By: rlh (rhalterman) Assigned to: Nobody/Anonymous (nobody) Summary: Interactions pane rejects minimum int Initial Comment: DrJava 20050519-0024 Windows, Linux, and Mac OS X versions The following Interactions sequence behaves consistently on all the supported platforms: > int x = -2147483648; NumberFormatException: For input string: "2147483648" at java.lang.NumberFormatException.forInputString (NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:463) at java.lang.Integer.valueOf(Integer.java:553) But, these work fine: > Integer.MIN_VALUE -2147483648 > Integer.parseInt("-2147483648") -2147483648 DrJava 20050519-0024 Linux (Debian Woody) and Windows (XP Professional, SP2): java version "1.5.0_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing) Mac OS X (Tiger--10.4): java version "1.5.0_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56) Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1201685&group_id=44253 |