test/tools/javac/NonStaticFieldExpr1.out

Tue, 04 Mar 2008 15:19:06 +0000

author
mcimadamore
date
Tue, 04 Mar 2008 15:19:06 +0000
changeset 7
d472e2fbcc39
parent 1
9a66ca7c79fa
child 69
82c7aa6fe50a
permissions
-rw-r--r--

6608214: Exception throw while analysing a file with error
Summary: bad error-recovery after bad type-variable bound is detected
Reviewed-by: jjg

     1 NonStaticFieldExpr1.java:10: non-static variable x cannot be referenced from a static context
     2   int y = NonStaticFieldExpr1.x;                // SHOULD BE ERROR
     3                              ^
     4 1 error

mercurial