JDK-4170173 : JTextComponent.AccessibleJTextComponent.getAfterIndex(...) works incorrectly.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.accessibility
  • Affected Version: 1.2.0,5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_2.5.1
  • CPU: generic,sparc
  • Submitted: 1998-08-31
  • Updated: 2017-05-16
  • Resolved: 2010-09-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Duplicate :  
Relates :  
Description
Name: aaC67449			Date: 08/31/98



JTextComponent.AccessibleJTextComponent.getAfterIndex(int part, int index) works incorrectly, when 'part' parameter is AccessibleText.WORD.
It returns a space (" ") instead of the correct word.
See example:
---------------- Example -----------------
import com.sun.java.swing.*;
import com.sun.java.accessibility.*;
public class Test {

   public static void main(String argv[]) {

            JTextField o=new JTextField("Test1 test2.");
            AccessibleText c = o.getAccessibleContext().getAccessibleText(); 
	    if (!c.getiAfterIndex(AccessibleText.WORD,2).equals("test2")) 
	            System.out.println("Failed. Method returns:\""+c.getAfterIndex(AccessibleText.WORD,2)+"\"");
            else 
	            System.out.println("Passed");
	  
   }  

}


----------- output ----------------
Enabling platform fonts
Failed. Method returns:" "





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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b16 VERIFIED IN: 1.5
2004-09-13

EVALUATION This is an accessibility bug, reassigning to Earl. sky 1998-09-09 This is a feature, not a bug. The behavior needs to be explained in the javadoc. Since this is a significant change to the javadoc, it will have to wait until Tiger. ###@###.### 2002-04-03
2002-04-03

SUGGESTED FIX This is a feature, not a bug. The behavior needs to be documented in the method javadoc. ###@###.### 2002-02-07
2002-02-07