-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
None
-
1.2fcs
-
generic
-
generic
-
Not verified
From page 1440 of "The Java Class Libraries, Second Edition, Volume 2"
> DESCRIPTION: This method selects the text located between the positions
> selStart and selEnd, inclusive.
Actually, the selection is not inclusive. For example, select(0, 1) would
select only one character, not two. If the selected string was "smiles",
select(0, 1) would select "s". Similarly, select(1, 5) would select "mile",
not "smile" or "miles".
See the description of substring in "The Java Language Specification",
section 20.12.32, page 543.
See also bugids 4119768, 4118247
> DESCRIPTION: This method selects the text located between the positions
> selStart and selEnd, inclusive.
Actually, the selection is not inclusive. For example, select(0, 1) would
select only one character, not two. If the selected string was "smiles",
select(0, 1) would select "s". Similarly, select(1, 5) would select "mile",
not "smile" or "miles".
See the description of substring in "The Java Language Specification",
section 20.12.32, page 543.
See also bugids 4119768, 4118247
- relates to
-
JDK-4119768 Specification for TextComponent.select(int, int) incomplete
-
- Resolved
-
-
JDK-4118247 TextComponent.select(int, int) works wrong with out of bounds parameters
-
- Closed
-