aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/FinalConstructorParm.java
blob: e86afe6c07c2d05e5ff8b11f75e0f9a0b91dcf2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import org.aspectj.testing.Tester;
public class FinalConstructorParm {
    int i;
    public FinalConstructorParm(final int i) { // bad compiler error here - not in 10b1
        this.i = i;
    }
    public int lessOne() { return i-1;}
    public static void main(String[] args) {
        Tester.check(1== (new FinalConstructorParm(2)).lessOne(),
                     "final failed");
    }
}