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

Doc: DocumentFilter.insertString method documentation to be changed

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      generic

      Description

      DocumentFilter.insertString method documentation says:

      Invoked prior to insertion of text into the specified Document. Subclasses that want to conditionally allow insertion should override this and only call supers implementation as necessary, or call directly into the FilterBypass

      This is misleading, as the expected behavior is, replace method will be called prior to insertion of text into the Document. Conditional insertion can be done by over-riding only the replace method and not the insertString method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peterz Peter Zhelezniakov (Inactive)
                Reporter:
                gramachasunw Girish Ramachandran (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: