diff options
author | kgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-17 18:53:10 +0000 |
---|---|---|
committer | kgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-17 18:53:10 +0000 |
commit | dedbfa48a37632c502a6ae2abe953c1a4fa9f121 (patch) | |
tree | d6c87dd47999aa1805d4ff883e69d49f93804206 /libjava/gnu | |
parent | 0aa75869cbeb02e436061c336ce358d6a9a84c2a (diff) | |
download | gcc-dedbfa48a37632c502a6ae2abe953c1a4fa9f121.tar.gz |
2007-05-17 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/natVMMethod.cc (getModifiers): Check for native
classes and mark methods as native appropriately.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124807 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/classpath/jdwp/natVMMethod.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/gnu/classpath/jdwp/natVMMethod.cc b/libjava/gnu/classpath/jdwp/natVMMethod.cc index 76fd0a64168..1cea54dae9d 100644 --- a/libjava/gnu/classpath/jdwp/natVMMethod.cc +++ b/libjava/gnu/classpath/jdwp/natVMMethod.cc @@ -14,6 +14,7 @@ details. */ #include <jvmti.h> #include "jvmti-int.h" +#include <java/lang/reflect/Modifier.h> #include <gnu/classpath/jdwp/VMMethod.h> #include <gnu/classpath/jdwp/exception/AbsentInformationException.h> #include <gnu/classpath/jdwp/exception/InvalidMethodException.h> @@ -65,6 +66,12 @@ gnu::classpath::jdwp::VMMethod::getModifiers () jmethodID method = reinterpret_cast<jmethodID> (_methodId); jint flags; env->GetMethodModifiers (method, &flags); + + // If this class is compiled, as far as JDWP is concerned, its methods are + // native. This will set the native flag for these methods. + if (!_Jv_IsInterpretedClass (getDeclaringClass ())) + flags |= ::java::lang::reflect::Modifier::NATIVE; + return flags; } |