[r=peter] dfa regression. Even finals must be flashed when they leave their declaration scope

This commit is contained in:
Maxim Shafirov
2011-12-02 13:50:40 +04:00
parent db9e26a218
commit 977679a62d
6 changed files with 31 additions and 1 deletions
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,17 @@
public class AAA {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
final String element = args[i];
if (i == 1) {
if (element != null) { // !!!!! WRONG: element[1] == null
return;
}
}
else if (element == null) {
return;
}
}
}
}