equal
deleted
inserted
replaced
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 |