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
|
2016-01-06 10:01:34 +00:00
|
|
|
* @modules java.base/sun.security.x509
|
2007-12-01 00:00:00 +00:00
|
|
|
* @compile WarnMethod.java
|
2015-05-15 01:28:43 -07:00
|
|
|
* @compile/fail/ref=WarnMethod.out -XDrawDiagnostics -Werror WarnMethod.java
|
|
|
|
* @compile/fail/ref=WarnMethod.out -XDrawDiagnostics -Werror -nowarn WarnMethod.java
|
|
|
|
* @compile/fail/ref=WarnMethod.out -XDrawDiagnostics -Werror -Xlint:none WarnMethod.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class WarnMethod {
|
|
|
|
public static void main(String... args) {
|
2016-01-06 10:01:34 +00:00
|
|
|
System.out.println(sun.security.x509.OIDMap.getOID(""));
|
2007-12-01 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|