aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/FinalInLoop.java
blob: a2b2ed9de7a83ee55a7c8f371b9def5644cf52ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import org.aspectj.testing.Tester;

public class FinalInLoop {
    /** @testcase PR#709 PUREJAVA final assignment in loop */
    public static void main (String[] args) {
        for (int i = 0; i < 1; i++) {
            final String s;
            if (true) {
                s = "true";
            } else {
                s = "false";
            }
            Tester.check("true".equals(s), "s not true");
        }
    }
}