2018-09-27 08:24:12 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 8211102
|
2022-07-29 17:35:22 +00:00
|
|
|
* @summary Ensure that the lambda analyzer does not run when --release 7 is specified,
|
2018-09-27 08:24:12 +00:00
|
|
|
* even if explicitly requested
|
|
|
|
* @compile/fail/ref=AnalyzersCheckSourceLevel.out -Werror -XDfind=lambda -XDrawDiagnostics AnalyzersCheckSourceLevel.java
|
2022-09-01 16:43:50 +00:00
|
|
|
*
|
2018-09-27 08:24:12 +00:00
|
|
|
*/
|
|
|
|
public class AnalyzersCheckSourceLevel {
|
|
|
|
void t() {
|
|
|
|
Runnable r = new Runnable() {
|
|
|
|
@Override public void run() {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|