jdk/src/share/classes/sun/misc/JavaLangAccess.java
changeset 20805 ae41216325dd
parent 17426 45db19517346
child 20831 96cf18811858
equal deleted inserted replaced
20804:18285d130365 20805:ae41216325dd
    25 
    25 
    26 package sun.misc;
    26 package sun.misc;
    27 
    27 
    28 import java.lang.annotation.Annotation;
    28 import java.lang.annotation.Annotation;
    29 import java.lang.reflect.Executable;
    29 import java.lang.reflect.Executable;
       
    30 import java.security.AccessControlContext;
       
    31 
    30 import sun.reflect.ConstantPool;
    32 import sun.reflect.ConstantPool;
    31 import sun.reflect.annotation.AnnotationType;
    33 import sun.reflect.annotation.AnnotationType;
    32 import sun.nio.ch.Interruptible;
    34 import sun.nio.ch.Interruptible;
    33 
    35 
    34 public interface JavaLangAccess {
    36 public interface JavaLangAccess {
   105      *
   107      *
   106      * @param chars the character array to back the string
   108      * @param chars the character array to back the string
   107      * @return a newly created string whose content is the character array
   109      * @return a newly created string whose content is the character array
   108      */
   110      */
   109     String newStringUnsafe(char[] chars);
   111     String newStringUnsafe(char[] chars);
       
   112 
       
   113     /**
       
   114      * Returns a new Thread with the given Runnable and an
       
   115      * inherited AccessControlContext.
       
   116      */
       
   117     Thread newThreadWithAcc(Runnable target, AccessControlContext acc);
   110 }
   118 }