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

getAnnotatedReceiverType parameterizes types too eagerly

    XMLWordPrintable

Details

    Backports

      Description

        After JDK-8202471 getAnnotatedReceiverType().getType() will return instances of ParameterizedType even though no type in the chain of owners contain type paramterters. Instances of ParameterizedType should only be returned if this type or any transitive owner has type parameters.

        Two tests are started failing with JDK16-b25 due to this.

        Attached a stand alone code which will pass in builds < b25.

        Attachments

          Issue Links

            Activity

              People

                jfranck Joel Borggrén-Franck (Inactive)
                kganapureddy Krushnareddy Ganapureddy
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: