1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8210310
 4  * @summary Javac allows invocation of identity sensitive jlO methods on values via super.
 5  * @compile/fail/ref=SneakThroSuperCallTest.out -XDrawDiagnostics -XDdev SneakThroSuperCallTest.java
 6  */
 7 
 8 public primitive class SneakThroSuperCallTest {
 9 
10     int x = 10;
11 
12     void foo() {
13         super.notify();
14     }
15 
16     public int hashCode() {
17         return super.hashCode();
18     }
19 
20     public String toString () {
21         return super.toString();
22     }
23 }