Note that type parameters are not visited by ElementScanners

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 8, 9, 13
    • Component/s: core-libs
    • None

      The behavior of the existing ElementScannerN classes is to *not* visit type parameters as part of the actions of their visitType and visitExecutable methods.

      This is a consequence of type parameters not being considered part of the enclosed elements of a type or executable.

      This behavior of skipping type parameters may be unexpected by users and has led to code like an internal RoundElement method "ElementScanningIncludingTypeParameters" (JDK-8032230).

      The behavior should at least be noted for the current visitors and should likely be changed when the ElementScanner(N+k) is eventually added.

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

              Created:
              Updated:
              Resolved: