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

Use default methods as appropriate for language model visitors

    XMLWordPrintable

    Details

      Backports

        Description

        When visitModule as added to ElementVisitor (JDK-8142968), it was added as a normal abstract interface method. This approach was necessary in Java SE 8 since the package in question is built under the previously JDK during the bootstrap process. For 9, better source compatibility would come from using a default method here.

        Likewise, several convenience methods in the visitors can be upgraded to default methods.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: