harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r793811 - in /harmony/enhanced: classlib/trunk/modules/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/VM.java drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/VM.java
Date Tue, 14 Jul 2009 07:56:05 GMT
Author: hindessm
Date: Tue Jul 14 07:56:05 2009
New Revision: 793811

URL: http://svn.apache.org/viewvc?rev=793811&view=rev
Log:
Applying patches from "[#HARMONY-6264] Need a new native method:
VM.getStackClass()".

Modified:
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/VM.java
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/VM.java

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/VM.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/VM.java?rev=793811&r1=793810&r2=793811&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/VM.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/VM.java
Tue Jul 14 07:56:05 2009
@@ -59,6 +59,25 @@
     };
 
     /**
+     * This method must be provided by the VM vendor. Returns the class of the
+     * method (including natives) at the specified depth on the stack of the
+     * calling thread. Frames representing the VM implementation of
+     * java.lang.reflect are not included in the list. Notes:
+     * <ul>
+     * <li>This method operates on the defining classes of methods on stack.
+     * NOT the classes of receivers.</li>
+     * <li>The item at depth zero is the caller of this method</li>
+     * </ul>
+     *
+     * @param depth the stack depth of the requested Class
+     * @return the Class at the specified depth
+     * @see Class#getStackClasses
+     */
+    public static Class<?> getStackClass(int depth) {
+        return null;
+    }
+
+    /**
      * This method must be provided by the vm vendor, as it is used by other
      * provided class implementations. For example,
      * java.io.ObjectInputStream.readObject() and

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/VM.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/VM.java?rev=793811&r1=793810&r2=793811&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/VM.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/VM.java
Tue Jul 14 07:56:05 2009
@@ -79,6 +79,10 @@
         return clazz != null ? getClassLoader(clazz) : null;
     }
 
+    public static Class<?> getStackClass(int depth) {
+        return VMStack.getCallerClass(depth);
+    }
+
     /* PRIVATE */
 
     /**



Mime
View raw message