jdk-24/test/langtools/tools/javac/analyzer/AnalyzerMandatoryWarnings.java
Jan Lahoda 1d71dd8604 8230105: -XDfind=diamond crashes
Avoiding side-effects in Analyzer's speculative attribution.

Reviewed-by: mcimadamore, vromero
2019-08-30 12:24:16 +02:00

17 lines
479 B
Java

/**
* @test
* @bug 8230105
* @summary Verify analyzers work reasonably in combination with mandatory warnings
* @compile/ref=AnalyzerMandatoryWarnings.out -Xlint:deprecation -XDrawDiagnostics -Xmaxwarns 1 -XDfind=lambda AnalyzerMandatoryWarnings.java
*/
public class AnalyzerMandatoryWarnings {
private void test() {
Runnable r = new Runnable() {
public void run() {
Depr r;
}
};
}
}
@Deprecated class Depr {}