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

Types.wildLowerBound and cvarLowerBound should call unannotatedType()

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:

      Backports

        Description

        Followup to JDK-8033718: the updated code fails to call unannotatedType() before performing a cast in the wildLowerBound and cvarLowerBound methods. There's not a straightforward way to prompt this scenario -- an annotated wildcard or capture variable -- but, to be safe and consistent, we should call unannotatedType().

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dlsmith Dan Smith
                Reporter:
                dlsmith Dan Smith
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: