mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-24 17:20:06 +00:00
8145544: Move sun.misc.VM to jdk.internal.misc
Reviewed-by: alanb, mullan, weijun
This commit is contained in:
parent
9fcb6958fa
commit
d829940e2d
@ -9,6 +9,6 @@
|
||||
* @compile/fail/ref=WarnImport.out -XDrawDiagnostics -Werror -Xlint:none WarnImport.java
|
||||
*/
|
||||
|
||||
import sun.misc.VM;
|
||||
import sun.security.x509.X509CertInfo;
|
||||
|
||||
public class WarnImport {}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
WarnImport.java:12:16: compiler.warn.sun.proprietary: sun.misc.VM
|
||||
WarnImport.java:12:25: compiler.warn.sun.proprietary: sun.security.x509.X509CertInfo
|
||||
- compiler.err.warnings.and.werror
|
||||
1 error
|
||||
1 warning
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
* @bug 6380059
|
||||
* @summary Emit warnings for proprietary packages in the boot class path
|
||||
* @author Peter von der Ah\u00e9
|
||||
* @modules java.base/sun.misc
|
||||
* @modules java.base/sun.security.x509
|
||||
* @compile WarnMethod.java
|
||||
* @compile/fail/ref=WarnMethod.out -XDrawDiagnostics -Werror WarnMethod.java
|
||||
* @compile/fail/ref=WarnMethod.out -XDrawDiagnostics -Werror -nowarn WarnMethod.java
|
||||
@ -12,6 +12,6 @@
|
||||
|
||||
public class WarnMethod {
|
||||
public static void main(String... args) {
|
||||
System.out.println(sun.misc.VM.getFinalRefCount());
|
||||
System.out.println(sun.security.x509.OIDMap.getOID(""));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
WarnMethod.java:15:36: compiler.warn.sun.proprietary: sun.misc.VM
|
||||
WarnMethod.java:15:45: compiler.warn.sun.proprietary: sun.security.x509.OIDMap
|
||||
- compiler.err.warnings.and.werror
|
||||
1 error
|
||||
1 warning
|
||||
|
||||
@ -9,6 +9,6 @@
|
||||
* @compile/fail/ref=WarnStaticImport.out -XDrawDiagnostics -Werror -Xlint:none WarnStaticImport.java
|
||||
*/
|
||||
|
||||
import static sun.misc.VM.getFinalRefCount;
|
||||
import static sun.security.x509.OIDMap.getOID;
|
||||
|
||||
public class WarnStaticImport {}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
WarnStaticImport.java:12:23: compiler.warn.sun.proprietary: sun.misc.VM
|
||||
WarnStaticImport.java:12:32: compiler.warn.sun.proprietary: sun.security.x509.OIDMap
|
||||
- compiler.err.warnings.and.werror
|
||||
1 error
|
||||
1 warning
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user