Wed, 23 Apr 2008 17:10:03 +0100
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
duke@1 | 1 | NonStaticFieldExpr1.java:10: non-static variable x cannot be referenced from a static context |
duke@1 | 2 | int y = NonStaticFieldExpr1.x; // SHOULD BE ERROR |
duke@1 | 3 | ^ |
duke@1 | 4 | 1 error |