/* src/vm/javaobjects.cpp - functions to create and access Java objects
- Copyright (C) 2010, 2011
+ Copyright (C) 1996-2011
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
Copyright (C) 2008, 2009 Theobroma Systems Ltd.
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
off_t java_lang_Thread::offset_group;
off_t java_lang_Thread::offset_uncaughtExceptionHandler;
off_t java_lang_Thread::offset_threadStatus;
+off_t java_lang_Thread::offset_me;
static DynOffsetEntry dyn_entries_java_lang_Thread[] = {
{ &java_lang_Thread::set_priority_offset, "priority" },
{ &java_lang_Thread::set_group_offset, "group" },
{ &java_lang_Thread::set_uncaughtExceptionHandler_offset, "uncaughtExceptionHandler" },
{ &java_lang_Thread::set_threadStatus_offset, "threadStatus" },
+ { &java_lang_Thread::set_me_offset, "me" },
{ 0, 0 }
};