|
|
|
|
|
by vbezhenar
2292 days ago
|
|
I still don't understand why reachable or unreachable changes the binding from names to local variable/field. The process of identifier resolution should happen before reachability analysis. Is there some bug or mail list thread with reaction from Java developers? |
|
(again, reachability analysis of unrelated code changes semantics.)
The problem is that this IS defined behaviour - the scope of the instanceof-assigned variable is dependent on whether or not the taken if-statement is provably exiting.
This is intended to allow
But it's not been thought through.