JDK-4313761 : Object.{sleep,wait} should reject unsupported timeout values
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2000-02-18
  • Updated: 2008-03-18
Related Reports
Relates :  
Description
The java.lang.Object.sleep and .wait methods accept 64-bit timeout values, but
in fact they just sleep forever if the timeout value does not fit into 32 bits.
These methods should be fixed to throw an appropriate runtime exception if the
requested timeout cannot be supported, and their specifications should be
updated accordingly.

-- mr@eng 2000/2/17

Comments
WORK AROUND
04-08-2004

SUGGESTED FIX
04-08-2004

PUBLIC COMMENTS
04-08-2004

EVALUATION This should be done but since 32 bit timeout values are large enough for almost any application I am lowering the priority. The other possibility is adding support for values up to 64 bits, that would require VM changes as well. ###@###.### 2002-05-16
16-05-2002