jdk/src/share/classes/java/lang/invoke/MethodHandleProxies.java
changeset 20534 da86f7904e6d
parent 18569 0e46c17766b7
child 22581 e868cde95050
equal deleted inserted replaced
20533:bee974bc42ac 20534:da86f7904e6d
   105      * <p>
   105      * <p>
   106      * Future versions of this API may accept additional types,
   106      * Future versions of this API may accept additional types,
   107      * such as abstract classes with single abstract methods.
   107      * such as abstract classes with single abstract methods.
   108      * Future versions of this API may also equip wrapper instances
   108      * Future versions of this API may also equip wrapper instances
   109      * with one or more additional public "marker" interfaces.
   109      * with one or more additional public "marker" interfaces.
       
   110      * <p>
       
   111      * If a security manager is installed, this method is caller sensitive.
       
   112      * During any invocation of the target method handle via the returned wrapper,
       
   113      * the original creator of the wrapper (the caller) will be visible
       
   114      * to context checks requested by the security manager.
   110      *
   115      *
   111      * @param <T> the desired type of the wrapper, a single-method interface
   116      * @param <T> the desired type of the wrapper, a single-method interface
   112      * @param intfc a class object representing {@code T}
   117      * @param intfc a class object representing {@code T}
   113      * @param target the method handle to invoke from the wrapper
   118      * @param target the method handle to invoke from the wrapper
   114      * @return a correctly-typed wrapper for the given target
   119      * @return a correctly-typed wrapper for the given target