changeset 3187:512af6dd6a7c

8145544: Move sun.misc.VM to jdk.internal.misc Reviewed-by: alanb, mullan, weijun
author chegar
date Wed, 06 Jan 2016 10:01:34 +0000
parents 51136404ee5e
children 13f3bd8e4924
files test/tools/javac/proprietary/WarnImport.java test/tools/javac/proprietary/WarnImport.out test/tools/javac/proprietary/WarnMethod.java test/tools/javac/proprietary/WarnMethod.out test/tools/javac/proprietary/WarnStaticImport.java test/tools/javac/proprietary/WarnStaticImport.out
diffstat 6 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/proprietary/WarnImport.java	Tue Dec 29 21:27:25 2015 -0800
+++ b/test/tools/javac/proprietary/WarnImport.java	Wed Jan 06 10:01:34 2016 +0000
@@ -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 {}
--- a/test/tools/javac/proprietary/WarnImport.out	Tue Dec 29 21:27:25 2015 -0800
+++ b/test/tools/javac/proprietary/WarnImport.out	Wed Jan 06 10:01:34 2016 +0000
@@ -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
--- a/test/tools/javac/proprietary/WarnMethod.java	Tue Dec 29 21:27:25 2015 -0800
+++ b/test/tools/javac/proprietary/WarnMethod.java	Wed Jan 06 10:01:34 2016 +0000
@@ -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(""));
     }
 }
--- a/test/tools/javac/proprietary/WarnMethod.out	Tue Dec 29 21:27:25 2015 -0800
+++ b/test/tools/javac/proprietary/WarnMethod.out	Wed Jan 06 10:01:34 2016 +0000
@@ -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
--- a/test/tools/javac/proprietary/WarnStaticImport.java	Tue Dec 29 21:27:25 2015 -0800
+++ b/test/tools/javac/proprietary/WarnStaticImport.java	Wed Jan 06 10:01:34 2016 +0000
@@ -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 {}
--- a/test/tools/javac/proprietary/WarnStaticImport.out	Tue Dec 29 21:27:25 2015 -0800
+++ b/test/tools/javac/proprietary/WarnStaticImport.out	Wed Jan 06 10:01:34 2016 +0000
@@ -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