jdk/src/share/classes/java/lang/Throwable.java
changeset 2947 b0135c99348e
parent 2 90ce3da70b43
child 4666 085aef3c09ff
--- a/jdk/src/share/classes/java/lang/Throwable.java	Sun Jun 14 14:23:22 2009 -0700
+++ b/jdk/src/share/classes/java/lang/Throwable.java	Sun Jun 14 14:33:30 2009 -0700
@@ -645,17 +645,21 @@
     /**
      * Returns the number of elements in the stack trace (or 0 if the stack
      * trace is unavailable).
+     *
+     * package-protection for use by SharedSecrets.
      */
-    private native int getStackTraceDepth();
+    native int getStackTraceDepth();
 
     /**
      * Returns the specified element of the stack trace.
      *
+     * package-protection for use by SharedSecrets.
+     *
      * @param index index of the element to return.
      * @throws IndexOutOfBoundsException if <tt>index &lt; 0 ||
      *         index &gt;= getStackTraceDepth() </tt>
      */
-    private native StackTraceElement getStackTraceElement(int index);
+    native StackTraceElement getStackTraceElement(int index);
 
     private synchronized void writeObject(java.io.ObjectOutputStream s)
         throws IOException