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

Add default impl for recent new Reporter.print method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:

      Backports

        Description

        JDK-8267204 added new API to the Reporter class. One of the new methods added to the interface was not declared with a default implementation. Although not strictly required in normal usage with javadoc, it is the prevailing convention to provide some sort of default implementation.

        The method in question is
        void print(Diagnostic.Kind kind, FileObject file, int start, int pos, int end, String message);

        There is no reasonable default behavior other than to throw UnsupportedOperationException.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jjg Jonathan Gibbons
                Reporter:
                jjg Jonathan Gibbons
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: