3789983e89
Reviewed-by: darcy, ihse
15 lines
339 B
Java
15 lines
339 B
Java
/*
|
|
* @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) {}
|
|
}
|
|
}
|
|
}
|