Clarify special case handling of unboxedType and getWildcardType

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: 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.


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

              Created:
              Updated:
              Resolved: