langtools/test/tools/javac/Object1.java
author prr
Mon, 13 Oct 2014 09:09:41 -0700 (2014-10-13)
changeset 27274 62de2c957523
parent 26529 10ec5e52bf75
permissions -rw-r--r--
8059848: Test java/awt/GraphicsDevice/CloneConfigsTest.java causes JVM crash in OEL 7.0 Reviewed-by: bae, serb
/*
 * @test /nodynamiccopyright/
 * @bug 4091755
 * @summary java.lang.Object can't be redefined without crashing javac
 * @author gafter
 *
 * @compile/fail/ref=Object1.out -XDrawDiagnostics  Object1.java
 */

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 { }
}