Mercurial > hg > openjdk7.svn
view j2se/test/tools/javac/NonStaticFieldExpr1.java @ 7:807dfe9c366c trunk
[svn] Load openjdk/jdk7/b19 into jdk/trunk.
author | xiomara |
---|---|
date | Fri, 31 Aug 2007 00:44:13 +0000 |
parents | a4ed3fb96592 |
children |
line wrap: on
line source
/* @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 }