1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/annotations/FinalReceiverTest.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,14 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8027886 1.7 + * @summary Receiver parameters must not be final 1.8 + * @compile/fail/ref=FinalReceiverTest.out -XDrawDiagnostics FinalReceiverTest.java 1.9 + */ 1.10 + 1.11 +class FinalReceiverTest { 1.12 + void m() { 1.13 + class Inner { 1.14 + Inner(final FinalReceiverTest FinalReceiverTest.this) {} 1.15 + } 1.16 + } 1.17 +}