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

Specification for TextComponent.select(int, int) incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.2.0
    • docs
    • 1.2.2
    • sparc
    • solaris_2.5



      Name: dsC58869 Date: 03/16/98



      The JDK1.2 API Documentation does not specify exactly the behavior
      of method java.awt.TextComponent.select(int, int) in case of inconsistent
      or out of bounds parameters.
      The JDK1.2 API Docs say about this method:
      *************
      public void select(int selectionStart,
                         int selectionEnd)

           Selects the text between the specified start and end positions.

           This method sets the start and end positions of the selected text, enforcing the
           restriction that the end position must be greater than or equal to the start
           position. The start position must be greater than zero, and the end position must
           be less that or equal to the length of the text component's text. If the caller
            ^^^^^^^^^^^^^
           supplies values that are inconsistent or out of bounds, the method enforces
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           these constraints silently, and without failure.
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      *************

      However, Docs does not say exactly how these constraints are enforced.

      See bug #4118247 for more details.

      ======================================================================
       Justification:
      Need complete specification for JCK test development

      ======================================================================

            asommere Alan Sommerer (Inactive)
            dsilaev Dmitri Silaev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: