corda/classpath/java/lang
Joel Dice 47503854d5 Thread.sleep(0) should not sleep indefinitely
Our implementation uses Object.wait(long) to implement Thread.sleep,
which had the side effect of interpreting zero as infinity.  However,
for Thread.sleep, zero just means zero.  I assume that doesn't mean
"don't sleep at all", though, or else the app wouldn't have called
Thread.sleep in the first place, so this patch sleeps for one
millisecond when zero is passed -- just enough to yield the processor
for a bit.  Thread.yield might be a better choice in this case, but I
assume the app would have called that directly if that's what it
wanted.
2012-08-12 11:17:59 -06:00
..
annotation Adding @Target and the associated ElementType enum for specifying the type an annotation is. 2012-05-22 15:18:42 -06:00
ref update copyright years 2010-12-05 20:21:09 -07:00
reflect Fixing some issues with runtime annotations within avian. 2012-05-22 14:02:51 -06:00
AbstractMethodError.java fix crash when encountering invokespecial call to abstract method 2011-07-17 19:54:55 -06:00
Appendable.java add classes and methods needed for GNU Classpath compatibility 2009-06-02 17:14:38 -06:00
ArithmeticException.java implement ArithmeticException 2008-03-21 13:48:42 -06:00
ArrayIndexOutOfBoundsException.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
ArrayStoreException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
AssertionError.java Added java.lang.AssertionError 2008-08-05 14:06:37 -06:00
Boolean.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Byte.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Character.java update copyright years 2012-05-11 17:43:27 -06:00
CharSequence.java Tweaked code indentation and formatting to match existing style 2008-07-03 10:49:08 -06:00
Class.java update copyright years 2012-05-11 17:43:27 -06:00
ClassCastException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ClassLoader.java update copyright years 2012-05-11 17:43:27 -06:00
ClassNotFoundException.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
Cloneable.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
CloneNotSupportedException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Comparable.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Deprecated.java add java.lang.Deprecated 2012-08-06 16:55:49 -06:00
Double.java Support for floating point conversions and tests 2008-02-28 08:35:16 -07:00
Enum.java update copyright years 2012-05-11 17:43:27 -06:00
Error.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Exception.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ExceptionInInitializerError.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
Float.java update copyright years 2012-05-11 17:43:27 -06:00
IllegalAccessError.java add error classes 2010-08-16 09:23:48 -06:00
IllegalAccessException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
IllegalArgumentException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
IllegalMonitorStateException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
IllegalStateException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
IllegalThreadStateException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
IncompatibleClassChangeError.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
IndexOutOfBoundsException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
InheritableThreadLocal.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
InstantiationError.java add error classes 2010-08-16 09:23:48 -06:00
InstantiationException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Integer.java Add Integer valueOf(String) method 2008-10-08 13:51:19 -06:00
InterruptedException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Iterable.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
LinkageError.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Long.java update copyright years 2010-12-05 20:21:09 -07:00
Math.java implement java.util.Random and java.lang.Math.random in Java 2008-03-20 18:39:25 -06:00
NegativeArraySizeException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NoClassDefFoundError.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NoSuchFieldError.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NoSuchFieldException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NoSuchMethodError.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NoSuchMethodException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NullPointerException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Number.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
NumberFormatException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Object.java update copyright years 2010-12-05 20:21:09 -07:00
OutOfMemoryError.java update copyright years 2010-12-05 20:21:09 -07:00
Override.java prepend copyright notice and license to source files 2008-08-05 14:15:10 -06:00
Package.java update copyright years 2012-05-11 17:43:27 -06:00
Process.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ReflectiveOperationException.java start work on OpenJDK 7 class library port 2012-02-18 15:17:10 -07:00
Runnable.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Runtime.java update copyright years 2012-05-11 17:43:27 -06:00
RuntimeException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
RuntimePermission.java added RuntimePermission and System.getenv() 2012-04-02 22:15:02 -06:00
SecurityException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
SecurityManager.java dummy SecurityManager and related classes added 2010-09-11 21:23:46 +02:00
Short.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
StackOverflowError.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
StackTraceElement.java update copyright years 2010-12-05 20:21:09 -07:00
String.java update copyright years 2012-05-11 17:43:27 -06:00
StringBuffer.java update copyright years 2009-12-02 19:08:29 -07:00
StringBuilder.java update copyright years 2009-12-02 19:08:29 -07:00
SuppressWarnings.java prepend copyright notice and license to source files 2008-08-05 14:15:10 -06:00
System.java update copyright years 2012-05-11 17:43:27 -06:00
Thread.java Thread.sleep(0) should not sleep indefinitely 2012-08-12 11:17:59 -06:00
ThreadDeath.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
ThreadGroup.java update copyright years 2010-12-05 20:21:09 -07:00
ThreadLocal.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Throwable.java update copyright years 2009-12-02 19:08:29 -07:00
UnsatisfiedLinkError.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
UnsupportedOperationException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
VirtualMachineError.java more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
Void.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00