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

Add default impl for recent new Reporter.print method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • 17
    • tools

    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

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

                Dates

                  Created:
                  Updated:
                  Resolved: