In the com.sun.jdi package, the documentation for invokeMethod on ClassType, InterfaceType and ObjectReference all have two @throws for InvalidTypeException:
* @throws {@link InvalidTypeException} if any argument in the
* argument list is not assignable to the corresponding method argument
* type.
* @throws InvalidTypeException If the arguments do not meet this requirement --
* Object arguments must be assignment compatible with the argument
* type. This implies that the argument type must be
* loaded through the enclosing class's class loader.
* Primitive arguments must be either assignment compatible with the
* argument type or must be convertible to the argument type without loss
* of information. See JLS section 5.2 for more information on assignment
* compatibility.
as the second version is far more specific, the first should be removed.
Similarly for the implementation class com.sun.tools.jdi.InvokableTypeImpl,
* @throws {@link InvalidTypeException} if any argument in the
* argument list is not assignable to the corresponding method argument
* type.
* @throws InvalidTypeException If the arguments do not meet this requirement --
* Object arguments must be assignment compatible with the argument
* type. This implies that the argument type must be
* loaded through the enclosing class's class loader.
* Primitive arguments must be either assignment compatible with the
* argument type or must be convertible to the argument type without loss
* of information. See JLS section 5.2 for more information on assignment
* compatibility.
as the second version is far more specific, the first should be removed.
Similarly for the implementation class com.sun.tools.jdi.InvokableTypeImpl,
- relates to
-
JDK-8179538 Update jdk.jdi to be HTML-5 friendly
-
- Resolved
-