jdk-24/test/langtools/tools/javac/preview/DeclaredUsingPreview.java
Jan Lahoda 235488215b 8250768: javac should be adapted to changes in JEP 12
Reviewed-by: mcimadamore, erikj, jjg, ihse
2021-01-11 10:10:47 +00:00

12 lines
642 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8250768
* @summary Verify javac correctly reports errors for uses of classes declared using preview features.
* @compile/ref=DeclaredUsingPreview-source.out -XDrawDiagnostics --enable-preview -source ${jdk.version} -Xlint:preview DeclaredUsingPreview.java DeclaredUsingPreviewDeclarations.java
* @compile/ref=DeclaredUsingPreview-class.out -XDrawDiagnostics --enable-preview -source ${jdk.version} -Xlint:preview DeclaredUsingPreview.java
*/
public class DeclaredUsingPreview {
DeclaredUsingPreviewDeclarations.C c;
DeclaredUsingPreviewDeclarations.C2 c2; //TODO: should cause warning?
}