Thu, 06 Mar 2008 10:07:25 -0800
4741726: allow Object += String
Summary: remove code in line with restriction removed from JLS
Reviewed-by: mcimadamore
Contributed-by: michaelbailey0@gmail.com
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 |