-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.3.1, 1.4.1
-
generic
-
generic
Thread.sleep(long ms ) throws a IllegalArgumentException when you pass a
negative value .
This is not documented in the javadoc for Thread.sleep(long ms ) while
it is specified for Thread.sleep(long ms, int nanosec )
Thread.sleep(long) should declare that it throws an
IllegalArgumentException the same way that Thread.sleep(long, int) does.
negative value .
This is not documented in the javadoc for Thread.sleep(long ms ) while
it is specified for Thread.sleep(long ms, int nanosec )
Thread.sleep(long) should declare that it throws an
IllegalArgumentException the same way that Thread.sleep(long, int) does.
- duplicates
-
JDK-4310779 (spec thread) Incomplete spec for Thread.{sleep(),join()} signatures that take arguments
-
- Closed
-