2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 01:28:43 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6380059
|
|
|
|
* @summary Emit warnings for proprietary packages in the boot class path
|
|
|
|
* @author Peter von der Ah\u00e9
|
2015-12-22 12:19:01 +00:00
|
|
|
* @modules java.base/sun.security.x509
|
2007-12-01 00:00:00 +00:00
|
|
|
* @compile WarnVariable.java
|
2015-05-15 01:28:43 -07:00
|
|
|
* @compile/fail/ref=WarnVariable.out -XDrawDiagnostics -Werror WarnVariable.java
|
|
|
|
* @compile/fail/ref=WarnVariable.out -XDrawDiagnostics -Werror -nowarn WarnVariable.java
|
|
|
|
* @compile/fail/ref=WarnVariable.out -XDrawDiagnostics -Werror -Xlint:none WarnVariable.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class WarnVariable {
|
|
|
|
public static void main(String... args) {
|
2015-12-22 12:19:01 +00:00
|
|
|
System.out.println(sun.security.x509.X509CertImpl.NAME);
|
2007-12-01 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|