test/tools/javac/NonStaticFieldExpr2.out

Wed, 23 Apr 2008 17:10:03 +0100

author
mcimadamore
date
Wed, 23 Apr 2008 17:10:03 +0100
changeset 33
ec29a1a284ca
parent 1
9a66ca7c79fa
child 69
82c7aa6fe50a
permissions
-rw-r--r--

6682380: Foreach loop with generics inside finally block crashes javac with -target 1.5
Summary: A missing type-erasure in Lower.java causes the compiler to crash since JDK6
Reviewed-by: jjg

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

mercurial