langtools/test/tools/javac/NonStaticFieldExpr1.java
author duke
Wed, 05 Jul 2017 16:37:21 +0200
changeset 572 18dc4ba4739a
parent 10 06bc494ca11e
child 863 3113c955a388
permissions -rw-r--r--
Merge

/* @test  /nodynamiccopyright/
   @bug 4087127 4785453
   @author dps
   @summary field: instance access through types is not allowed

   @run shell NonStaticFieldExpr1.sh
*/
class NonStaticFieldExpr1 {
  public int x;
  int y = NonStaticFieldExpr1.x;                // SHOULD BE ERROR
}