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

Add default impl for recent new Reporter.print method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 17
    • 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.

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

                Created:
                Updated:
                Resolved: