1/*
2 * @test /nodynamiccopyright/
3 * @bug 8156180
4 * @summary javac accepts code that violates JLS chapter 16
5 *
6 * @compile/fail/ref=T8156180.out -XDrawDiagnostics T8156180.java
7 */
8
9class T8156180 {
10    public final int a1, b1, c1, d1;
11    public int a2, b2, c2, d2;
12
13    T8156180(int value) {
14        a2 = this.a1;
15        b2 = (this).b1;
16        c2 = ((this)).c1;
17        d2 = (((this))).d1;
18        a1 = value;
19        b1 = value;
20        c1 = value;
21        d1 = value;
22    }
23}
24