Index: trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/VMStack.java =================================================================== --- trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/VMStack.java (revision 531747) +++ trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/VMStack.java (working copy) @@ -58,9 +58,10 @@ * Collects and returns the stack of the current thread as an array of * classes. Resulting array should contain maxSize elements at the maximum. * Note that reflection stack frames should not be taken into account. The - * caller of the caller of this method is stored as a first element of the - * array. If considerPrivileged is true then the last element of the array - * should be the caller of the most recent privileged method. + * caller of the caller of the caller of this method is stored as a first + * element of the array. If considerPrivileged is true then the last + * element of the array should be the caller of the most recent privileged + * method. *

* This method may be used by security checks implementation. It is not * supposed to be used by Throwable class. Index: trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMStack.cpp =================================================================== --- trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMStack.cpp (revision 531747) +++ trunk/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMStack.cpp (working copy) @@ -117,9 +117,9 @@ StackTraceFrame* frames; st_get_trace(get_thread_ptr(), &size, &frames); - // The caller of the caller of this method is stored as a first element of the array. - // For details look at the org/apache/harmony/vm/VMStack.java file. Thus skipping 2 frames. - unsigned skip = 2; + // The caller of the caller of the caller of this method is stored as a first element of the array. + // For details look at the org/apache/harmony/vm/VMStack.java file. Thus skipping 3 frames. + unsigned skip = 3; Global_Env* genv = jni_get_vm_env(jenv);