8130061: java.beans.EventHandler.create does not specify how it fails when an EventHandler cannot be created

Reviewed-by: alanb
This commit is contained in:
Sergey Bylokhov 2016-02-12 16:08:39 +03:00
parent 4e4a6d18ab
commit 0b936de72a

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -526,8 +526,11 @@ public class EventHandler implements InvocationHandler {
* @throws NullPointerException if {@code listenerInterface} is null
* @throws NullPointerException if {@code target} is null
* @throws NullPointerException if {@code action} is null
*
* @throws IllegalArgumentException if creating a Proxy for
* {@code listenerInterface} fails for any of the restrictions
* specified by {@link Proxy#newProxyInstance}
* @see #create(Class, Object, String, String)
* @see Proxy#newProxyInstance
*/
public static <T> T create(Class<T> listenerInterface,
Object target, String action)
@ -584,8 +587,11 @@ public class EventHandler implements InvocationHandler {
* @throws NullPointerException if {@code listenerInterface} is null
* @throws NullPointerException if {@code target} is null
* @throws NullPointerException if {@code action} is null
*
* @throws IllegalArgumentException if creating a Proxy for
* {@code listenerInterface} fails for any of the restrictions
* specified by {@link Proxy#newProxyInstance}
* @see #create(Class, Object, String, String, String)
* @see Proxy#newProxyInstance
*/
public static <T> T create(Class<T> listenerInterface,
Object target, String action,
@ -675,8 +681,11 @@ public class EventHandler implements InvocationHandler {
* @throws NullPointerException if {@code listenerInterface} is null
* @throws NullPointerException if {@code target} is null
* @throws NullPointerException if {@code action} is null
*
* @throws IllegalArgumentException if creating a Proxy for
* {@code listenerInterface} fails for any of the restrictions
* specified by {@link Proxy#newProxyInstance}
* @see EventHandler
* @see Proxy#newProxyInstance
*/
public static <T> T create(Class<T> listenerInterface,
Object target, String action,