2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-09-05 23:51:39 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4091755
|
|
|
|
* @summary java.lang.Object can't be redefined without crashing javac
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-09-05 23:51:39 +00:00
|
|
|
* @compile/fail/ref=Object1.out -XDrawDiagnostics Object1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package java.lang;
|
|
|
|
class Object extends Throwable {
|
|
|
|
public final native Class getClass();
|
|
|
|
public native int hashCode();
|
|
|
|
public native boolean equals(Object obj);
|
|
|
|
protected native Object clone() throws CloneNotSupportedException;
|
|
|
|
public native String toString();
|
|
|
|
public final native void notify();
|
|
|
|
public final native void notifyAll();
|
|
|
|
public final native void wait(long timeout) throws InterruptedException;
|
|
|
|
public native final void wait(long timeout, int nanos) throws InterruptedException;
|
|
|
|
public native final void wait() throws InterruptedException;
|
|
|
|
protected void finalize() throws Throwable { }
|
|
|
|
}
|