comparison src/share/vm/prims/jvm.h @ 18051:21444610cb92

8015256: Better class accessibility Summary: Improve protection domain check in forName() Reviewed-by: mchung, acorn, jdn
author coleenp
date Thu, 08 May 2014 17:19:49 -0400
parents 615d83933195
children 54bc75c144b0
comparison
equal deleted inserted replaced
18050:6424a6aac192 18051:21444610cb92
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
413 /* 413 /*
414 * Find a class from a boot class loader. Returns NULL if class not found. 414 * Find a class from a boot class loader. Returns NULL if class not found.
415 */ 415 */
416 JNIEXPORT jclass JNICALL 416 JNIEXPORT jclass JNICALL
417 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name); 417 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
418
419 /*
420 * Find a class from a given class loader. Throws ClassNotFoundException.
421 * name: name of class
422 * init: whether initialization is done
423 * loader: class loader to look up the class. This may not be the same as the caller's
424 * class loader.
425 * caller: initiating class. The initiating class may be null when a security
426 * manager is not installed.
427 */
428 JNIEXPORT jclass JNICALL
429 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init,
430 jobject loader, jclass caller);
418 431
419 /* 432 /*
420 * Find a class from a given class. 433 * Find a class from a given class.
421 */ 434 */
422 JNIEXPORT jclass JNICALL 435 JNIEXPORT jclass JNICALL