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

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

    XMLWordPrintable

Details

    • b81
    • generic
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: