Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
17 lines
439 B
Java
17 lines
439 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8024809
|
|
* @summary javac, some lambda programs are rejected by flow analysis
|
|
* @compile/fail/ref=SelfInitializerInLambdaTestb.out -XDrawDiagnostics SelfInitializerInLambdaTestb.java
|
|
*/
|
|
|
|
public class SelfInitializerInLambdaTestb {
|
|
|
|
final Runnable r1;
|
|
|
|
final Runnable r2 = ()-> System.out.println(r1);
|
|
|
|
SelfInitializerInLambdaTestb() {
|
|
r1 = ()->System.out.println(r1);
|
|
}
|
|
}
|