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

Specification for TextComponent.select(int, int) incomplete

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.2
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      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

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: