Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8055219 Handling of non-standard inputs in javax.lang.model.util.Types
  3. JDK-8340721

Clarify special case handling of unboxedType and getWildcardType

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • core-libs
    • None

      Copying notes from parent issue:

      unboxedType

      spec: IAE when the "given type has no unboxing conversion"

      actual: matches spec

      expected: fine, but could be more explicit that there will always be an IAE for non-DeclaredTypes.

      ---

      getWildcardType

      spec: IAE if an input TypeMirror is "not valid"

      actual: IAE for PrimitiveType, WildcardType, UnionType, ExecutableType, and NoTypes; no error for ErrorTypes.

      expected: behavior is fine, but spec should be more clear -- that is, IAE for all non-ReferenceTypes.


            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: