mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
add classes and methods needed for GNU Classpath compatibility
Most of these methods are stubs which throw UnsupportedOperationExceptions for now.
This commit is contained in:
@ -25,7 +25,7 @@ public class Object {
|
||||
return this == o;
|
||||
}
|
||||
|
||||
protected void finalize() { }
|
||||
protected void finalize() throws Throwable { }
|
||||
|
||||
public native final Class<? extends Object> getClass();
|
||||
|
||||
@ -41,5 +41,14 @@ public class Object {
|
||||
wait(0);
|
||||
}
|
||||
|
||||
public native final void wait(long timeout) throws InterruptedException;
|
||||
public native final void wait(long milliseconds) throws InterruptedException;
|
||||
|
||||
public final void wait(long milliseconds, int nanoseconds)
|
||||
throws InterruptedException
|
||||
{
|
||||
if (nanoseconds != 0) {
|
||||
++ milliseconds;
|
||||
}
|
||||
wait(milliseconds);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user