2018-04-12 12:55:20 +00:00
|
|
|
/*
|
2018-05-02 14:29:55 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2018-04-12 12:55:20 +00:00
|
|
|
* @bug 8199194
|
|
|
|
* @summary smoke test for --enabled-preview classreader support
|
2019-02-21 18:29:16 +00:00
|
|
|
* @compile -XDforcePreview --enable-preview -source ${jdk.version} Bar.java
|
2018-04-12 12:55:20 +00:00
|
|
|
* @compile/fail/ref=Client.nopreview.out -Xlint:preview -XDrawDiagnostics Client.java
|
2019-02-21 18:29:16 +00:00
|
|
|
* @compile/fail/ref=Client.preview.out -Werror -Xlint:preview -XDrawDiagnostics --enable-preview -source ${jdk.version} Client.java
|
2018-04-12 12:55:20 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class Client {
|
|
|
|
void test() {
|
|
|
|
new Bar();
|
|
|
|
}
|
|
|
|
}
|