author | andrew |
Thu, 03 Jun 2010 19:37:48 +0100 | |
changeset 5639 | 730861c04a99 |
parent 863 | 3113c955a388 |
child 6150 | d055fa8ced62 |
permissions | -rw-r--r-- |
/* @test /nodynamiccopyright/ @bug 4087127 4785453 @author dps @summary method: instance access through types is not allowed @compile/fail/ref=NonStaticFieldExpr2.out -XDrawDiagnostics -XDstdout NonStaticFieldExpr2.java */ class NonStaticFieldExpr2 { public int x; void foo () { int z = NonStaticFieldExpr2.x; // SHOULD BE ERROR } }