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

HTMLEditorKit.read and insertHTML specify RuntimeException

    XMLWordPrintable

Details

    Description

      The two methods in HTMLEditorKit: read and insertHTML specify RuntimeException is thrown:

           * @throws RuntimeException (will eventually be a BadLocationException)
           * if pos is invalid

      This is confusing.

      BadLocationException is a checked exception and it's also documented.

      Attachments

        Activity

          People

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: