190ba196a0
Reviewed-by: jjg
17 lines
595 B
Java
17 lines
595 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 6380059
|
|
* @summary Emit warnings for proprietary packages in the boot class path
|
|
* @author Peter von der Ah\u00e9
|
|
* @compile WarnMethod.java
|
|
* @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
|
|
*/
|
|
|
|
public class WarnMethod {
|
|
public static void main(String... args) {
|
|
System.out.println(sun.misc.VM.getFinalRefCount());
|
|
}
|
|
}
|