1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8237066
 4  * @summary  Adjust inline type's interactions with jlO methods per latest spec
 5  * @compile/fail/ref=CheckObjectMethodsUsage.out -XDrawDiagnostics CheckObjectMethodsUsage.java
 6  */
 7 
 8 public primitive class CheckObjectMethodsUsage {
 9     int x = 42;
10 
11     public void finalize() {}
12     public Object clone() {}
13 
14     void testObjectMethods() {
15         super.finalize();
16         wait(0L, 0);
17         super.wait(0L, 0);
18         wait(0L);
19         super.wait(0L);
20         wait();
21         super.wait();
22         notify();
23         super.notify();
24         notifyAll();
25         super.notifyAll();
26         super.clone();
27         super.hashCode();
28         super.toString();
29         super.equals(this);
30         super.getClass();
31     }
32     public static void main(String [] args) {
33         new CheckObjectMethodsUsage().testObjectMethods();
34     }
35 }