Add default impl for recent new Reporter.print method

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 17
    • Affects Version/s: 17
    • Component/s: tools

        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.

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

                Created:
                Updated:
                Resolved: