/[classpath]/classpath/java/lang/Thread.java
ViewVC logotype

Diff of /classpath/java/lang/Thread.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by tromey, Tue Sep 13 22:19:15 2005 UTC revision 1.16 by glavaux, Sun Oct 23 17:04:46 2005 UTC
# Line 813  public class Thread implements Runnable Line 813  public class Thread implements Runnable
813    {    {
814    
815      // Check parameters      // Check parameters
816      if (ms < 0 || ns < 0 || ns > 999999)      if (ms < 0 )
817        throw new IllegalArgumentException();        throw new IllegalArgumentException("Negative milliseconds: " + ms);
818    
819        if (ns < 0 || ns > 999999)
820          throw new IllegalArgumentException("Nanoseconds ouf of range: " + ns);
821    
822      // Really sleep      // Really sleep
823      VMThread.sleep(ms, ns);      VMThread.sleep(ms, ns);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26