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

Some typeUtils methods can result in an IllegalArgumentException and this is not documented.

XMLWordPrintable

    • b81
    • generic
    • generic

      Some Types methods that take TypeMirror's as paramaters will result in the implementation of a IllegalArgumentException when the right TypeMirrors are not passed in. eg., if IsAssignable(TypeMirror, TypeMirror) is passed a TypeMirror that represents an ExecutableElement, an IllegalArgumentException will be thrown.
      I'd think this should be documented and/or part of the methods' throws clause.

            sseligmasunw Scott Seligman (Inactive)
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: