I understand that it is illegal to declare local variables of the same name in the same scope. I wrote this very simple class, and yes, the IDE does display an error next to
This is a compile-time error. Presumably you successfully compiled before introducing the error and are still executing that .class file.
.class