1.1 --- a/src/share/vm/prims/jvm.h Tue May 06 10:58:10 2014 -0700 1.2 +++ b/src/share/vm/prims/jvm.h Thu May 08 17:19:49 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -417,6 +417,19 @@ 1.11 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name); 1.12 1.13 /* 1.14 + * Find a class from a given class loader. Throws ClassNotFoundException. 1.15 + * name: name of class 1.16 + * init: whether initialization is done 1.17 + * loader: class loader to look up the class. This may not be the same as the caller's 1.18 + * class loader. 1.19 + * caller: initiating class. The initiating class may be null when a security 1.20 + * manager is not installed. 1.21 + */ 1.22 +JNIEXPORT jclass JNICALL 1.23 +JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init, 1.24 + jobject loader, jclass caller); 1.25 + 1.26 +/* 1.27 * Find a class from a given class. 1.28 */ 1.29 JNIEXPORT jclass JNICALL