mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8186535: Remove deprecated pre-1.2 SecurityManager methods and fields
Reviewed-by: alanb, coleenp, hseigel, mchung
This commit is contained in:
parent
5102cb9120
commit
4da03ba907
8 changed files with 119 additions and 465 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -76,53 +76,3 @@ Java_java_lang_SecurityManager_getClassContext(JNIEnv *env, jobject this)
|
|||
|
||||
return JVM_GetClassContext(env);
|
||||
}
|
||||
|
||||
JNIEXPORT jclass JNICALL
|
||||
Java_java_lang_SecurityManager_currentLoadedClass0(JNIEnv *env, jobject this)
|
||||
{
|
||||
/* Make sure the security manager instance is initialized */
|
||||
if (!check(env, this)) {
|
||||
return NULL; /* exception */
|
||||
}
|
||||
|
||||
return JVM_CurrentLoadedClass(env);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL
|
||||
Java_java_lang_SecurityManager_currentClassLoader0(JNIEnv *env, jobject this)
|
||||
{
|
||||
/* Make sure the security manager instance is initialized */
|
||||
if (!check(env, this)) {
|
||||
return NULL; /* exception */
|
||||
}
|
||||
|
||||
return JVM_CurrentClassLoader(env);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_java_lang_SecurityManager_classDepth(JNIEnv *env, jobject this,
|
||||
jstring name)
|
||||
{
|
||||
/* Make sure the security manager instance is initialized */
|
||||
if (!check(env, this)) {
|
||||
return -1; /* exception */
|
||||
}
|
||||
|
||||
if (name == NULL) {
|
||||
JNU_ThrowNullPointerException(env, 0);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return JVM_ClassDepth(env, name);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_java_lang_SecurityManager_classLoaderDepth0(JNIEnv *env, jobject this)
|
||||
{
|
||||
/* Make sure the security manager instance is initialized */
|
||||
if (!check(env, this)) {
|
||||
return -1; /* exception */
|
||||
}
|
||||
|
||||
return JVM_ClassLoaderDepth(env);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue