Consider the following code snippet, I stumpled upon after some refactoring, when checkin why the build server reported a broken build but it was fine in my IDE:
<
This compiled fine for me. I'm using the Java 8 JDK, on Netbeans, on a 64 bit machine (Windows 7).
I believe this is a localization issue related to your IDE or compiler. I used your exact example, the output being
false
true
false
There was a warning given, stating that it is possible, but not recommended to hide a field with a local variable.