if (!access_check_method(m, 2))
return NULL;
#elif defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
- /* We only pass 1 here as stacktrace_get_caller_class, which
+ /* We only pass 0 here as stacktrace_get_caller_class, which
is called from access_check_method, skips
java.lang.reflect.Method.invoke(). */
- if (!access_check_method(m, 1))
+ if (!access_check_method(m, 0))
return NULL;
#else
# error unknown classpath configuration