author | lana |
Thu, 21 Jan 2016 09:46:01 -0800 | |
changeset 35340 | 38f7386ed942 |
parent 26529 | 10ec5e52bf75 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26529
10ec5e52bf75
8055079: Group 9c: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4091755 |
4 |
* @summary java.lang.Object can't be redefined without crashing javac |
|
5 |
* @author gafter |
|
6 |
* |
|
26529
10ec5e52bf75
8055079: Group 9c: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=Object1.out -XDrawDiagnostics Object1.java |
10 | 8 |
*/ |
9 |
||
10 |
package java.lang; |
|
11 |
class Object extends Throwable { |
|
12 |
public final native Class getClass(); |
|
13 |
public native int hashCode(); |
|
14 |
public native boolean equals(Object obj); |
|
15 |
protected native Object clone() throws CloneNotSupportedException; |
|
16 |
public native String toString(); |
|
17 |
public final native void notify(); |
|
18 |
public final native void notifyAll(); |
|
19 |
public final native void wait(long timeout) throws InterruptedException; |
|
20 |
public native final void wait(long timeout, int nanos) throws InterruptedException; |
|
21 |
public native final void wait() throws InterruptedException; |
|
22 |
protected void finalize() throws Throwable { } |
|
23 |
} |