Despite the fact that in different cases the variables local to the switch are in the same block, which means that they are in the same area.
As far as I know, a new area in Java is created only in a new block of code. A block of code (with more than one line) must be surrounded by curly braces. The code in the cases of the switch statement is not surrounded by curly braces, so it is part of the entire scope of the statement.
However, you can enter a new area in the statement by adding curly braces:
switch (cond) { case 1:{ Object o = new Object(); } break; case 2:{
source share