-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
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
======================================================================
- relates to
-
JDK-4118247 TextComponent.select(int, int) works wrong with out of bounds parameters
-
- Closed
-
-
JDK-4129186 TextComponent.select(int, int) API description has a small error
-
- Closed
-