Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167253

com.sun.jdi invokeMethod has duplicated @throws for InvalidTypeException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 8, 9
    • core-svc
    • b01

      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,

            gadams Gary Adams (Inactive)
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: