langtools/test/tools/javac/annotations/FinalReceiverTest.java
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 24903 41e1812d6b4c
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c

/*
 * @test /nodynamiccopyright/
 * @bug 8027886
 * @summary Receiver parameters must not be final
 * @compile/fail/ref=FinalReceiverTest.out  -XDrawDiagnostics FinalReceiverTest.java
 */

class FinalReceiverTest {
    void m() {
        class Inner {
            Inner(final FinalReceiverTest FinalReceiverTest.this) {}
        }
    }
}