8016019: Remove setProtectionDomain0 and JVM_SetProtectionDomain in JDK
authoremc
Thu, 06 Jun 2013 09:51:17 -0400
changeset 18139 9fb8a2d427b5
parent 18138 02cb2d482ed0
child 18140 f38c5cfccd38
8016019: Remove setProtectionDomain0 and JVM_SetProtectionDomain in JDK Summary: setProtectionDomain0 and JVM_SetProtectionDomain are unused since at least 1.5. This is the JDK side of a changeset to remove it. Reviewed-by: alanb
jdk/src/share/classes/java/lang/Class.java
jdk/src/share/javavm/export/jvm.h
jdk/src/share/native/java/lang/Class.c
--- a/jdk/src/share/classes/java/lang/Class.java	Thu Jun 06 14:10:44 2013 +0100
+++ b/jdk/src/share/classes/java/lang/Class.java	Thu Jun 06 09:51:17 2013 -0400
@@ -2212,14 +2212,6 @@
      */
     private native java.security.ProtectionDomain getProtectionDomain0();
 
-
-    /**
-     * Set the ProtectionDomain for this class. Called by
-     * ClassLoader.defineClass.
-     */
-    native void setProtectionDomain0(java.security.ProtectionDomain pd);
-
-
     /*
      * Return the Virtual Machine's Class object for the named
      * primitive type.
--- a/jdk/src/share/javavm/export/jvm.h	Thu Jun 06 14:10:44 2013 +0100
+++ b/jdk/src/share/javavm/export/jvm.h	Thu Jun 06 09:51:17 2013 -0400
@@ -441,9 +441,6 @@
 JNIEXPORT jobject JNICALL
 JVM_GetProtectionDomain(JNIEnv *env, jclass cls);
 
-JNIEXPORT void JNICALL
-JVM_SetProtectionDomain(JNIEnv *env, jclass cls, jobject protection_domain);
-
 JNIEXPORT jboolean JNICALL
 JVM_IsArrayClass(JNIEnv *env, jclass cls);
 
--- a/jdk/src/share/native/java/lang/Class.c	Thu Jun 06 14:10:44 2013 +0100
+++ b/jdk/src/share/native/java/lang/Class.c	Thu Jun 06 09:51:17 2013 -0400
@@ -68,7 +68,6 @@
     {"getDeclaredMethods0","(Z)[" MHD,      (void *)&JVM_GetClassDeclaredMethods},
     {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
     {"getProtectionDomain0", "()" PD,       (void *)&JVM_GetProtectionDomain},
-    {"setProtectionDomain0", "(" PD ")V",   (void *)&JVM_SetProtectionDomain},
     {"getDeclaredClasses0",  "()[" CLS,      (void *)&JVM_GetDeclaredClasses},
     {"getDeclaringClass",   "()" CLS,      (void *)&JVM_GetDeclaringClass},
     {"getGenericSignature", "()" STR,       (void *)&JVM_GetClassSignature},