[RFA/JDWP] Fix method flags for compiled classes

Kyle Galloway kgallowa@redhat.com
Fri May 11 19:07:00 GMT 2007


Currently, the modifiers for a method for JDWP are determined by the
underlying java class, not the actual way in which the method is being
run.  If a class, a part of the class libraries for example, has been
precompiled and is being run as native code, for JDWPs purposes, this is
a native method.  This patch checks if the class for a method is
non-interpreted, and if so, marks the method as native.  This prevents
eclipse fro attempting to do things like getting the line table which
cannot be done for native methods.


ChangeLog
207-05-11  Kyle Galloway  <kgallowa@redhat.com>

    * gnu/classpath/jdwp/natVMMethod.cc (getModifiers): Check for native
classes,
    and mark methods as native appropriately.

Questions/Comments/Concerns?

Thanks,

Kyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: methodmods.patch
Type: text/x-patch
Size: 919 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070511/1470a5f6/attachment.bin>


More information about the Java-patches mailing list