src/share/classes/sun/misc/JavaLangAccess.java

Print this page




 110     /**
 111      * Returns the ith StackTraceElement for the given throwable.
 112      */
 113     StackTraceElement getStackTraceElement(Throwable t, int i);
 114 
 115     /**
 116      * Returns a new string backed by the provided character array. The
 117      * character array is not copied and must never be modified after the
 118      * String is created, in order to fulfill String's contract.
 119      *
 120      * @param chars the character array to back the string
 121      * @return a newly created string whose content is the character array
 122      */
 123     String newStringUnsafe(char[] chars);
 124 
 125     /**
 126      * Returns a new Thread with the given Runnable and an
 127      * inherited AccessControlContext.
 128      */
 129     Thread newThreadWithAcc(Runnable target, AccessControlContext acc);





 130 }


 110     /**
 111      * Returns the ith StackTraceElement for the given throwable.
 112      */
 113     StackTraceElement getStackTraceElement(Throwable t, int i);
 114 
 115     /**
 116      * Returns a new string backed by the provided character array. The
 117      * character array is not copied and must never be modified after the
 118      * String is created, in order to fulfill String's contract.
 119      *
 120      * @param chars the character array to back the string
 121      * @return a newly created string whose content is the character array
 122      */
 123     String newStringUnsafe(char[] chars);
 124 
 125     /**
 126      * Returns a new Thread with the given Runnable and an
 127      * inherited AccessControlContext.
 128      */
 129     Thread newThreadWithAcc(Runnable target, AccessControlContext acc);
 130 
 131     /**
 132      * Invokes the finalize method of the given object.
 133      */
 134     void invokeFinalize(Object o) throws Throwable;
 135 }