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

Add clarifying overrides of Element.asType to more specific subinterfaces

    Details

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

      Backports

        Description

        The Element.asType methods gives a general description of its semantics. It would be helpful if the Element subinterfaces, PackageElement, VariableElement, etc. had type-specific descriptions of the behavior and semantics of asType.

        This pattern is already followed by Element.getEnclosedElements with overrides in subintefaces giving more detail.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: