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