jdk/src/share/classes/java/lang/invoke/MethodHandleProxies.java
changeset 18569 0e46c17766b7
parent 16906 44dfee24cb71
child 20534 da86f7904e6d
equal deleted inserted replaced
18568:59fcf0320687 18569:0e46c17766b7
   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      *
   110      *
       
   111      * @param <T> the desired type of the wrapper, a single-method interface
       
   112      * @param intfc a class object representing {@code T}
   111      * @param target the method handle to invoke from the wrapper
   113      * @param target the method handle to invoke from the wrapper
   112      * @param intfc the desired type of the wrapper, a single-method interface
       
   113      * @return a correctly-typed wrapper for the given target
   114      * @return a correctly-typed wrapper for the given target
   114      * @throws NullPointerException if either argument is null
   115      * @throws NullPointerException if either argument is null
   115      * @throws IllegalArgumentException if the {@code intfc} is not a
   116      * @throws IllegalArgumentException if the {@code intfc} is not a
   116      *         valid argument to this method
   117      *         valid argument to this method
   117      * @throws WrongMethodTypeException if the target cannot
   118      * @throws WrongMethodTypeException if the target cannot