Reflection.c revision 6338
3867N/A/*
3867N/A * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
3867N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3867N/A *
3867N/A * This code is free software; you can redistribute it and/or modify it
3867N/A * under the terms of the GNU General Public License version 2 only, as
3867N/A * published by the Free Software Foundation. Oracle designates this
3867N/A * particular file as subject to the "Classpath" exception as provided
3867N/A * by Oracle in the LICENSE file that accompanied this code.
3867N/A *
3867N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3867N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3867N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3867N/A * version 2 for more details (a copy is included in the LICENSE file that
3867N/A * accompanied this code).
3867N/A *
3867N/A * You should have received a copy of the GNU General Public License version
3867N/A * 2 along with this work; if not, write to the Free Software Foundation,
3867N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3867N/A *
3867N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3867N/A * or visit www.oracle.com if you need additional information or have any
3867N/A * questions.
3867N/A */
3867N/A
3867N/A#include "jvm.h"
3867N/A#include "sun_reflect_Reflection.h"
3867N/A
3867N/AJNIEXPORT jclass JNICALL Java_sun_reflect_Reflection_getCallerClass
3867N/A(JNIEnv *env, jclass unused)
3867N/A{
3867N/A // Until there is hotspot @CallerSensitive support,
3867N/A // depth must always be 2 to get the immediate caller
3867N/A return JVM_GetCallerClass(env, 2);
3867N/A}
3867N/A
3867N/AJNIEXPORT jint JNICALL Java_sun_reflect_Reflection_getClassAccessFlags
3867N/A(JNIEnv *env, jclass unused, jclass cls)
3867N/A{
3867N/A return JVM_GetClassAccessFlags(env, cls);
3867N/A}
3867N/A