GNOME Bugzilla – Bug 563173
StringIndexOutOfBoundsException can be thrown in Java Access Bridge
Last modified: 2008-12-04 20:43:24 UTC
From e-mail on gnome-accessibility-devel (http://mail.gnome.org/archives/gnome-accessibility-devel/2008-December/msg00004.html): This is a patch for the java-access-bridge in gnome (http://live.gnome.org/Java%20Access%20Bridge). Using a swing JTextField, if a user selects text and starts typing to replace it, a StringIndexOutOfBoundsException is thrown in . The following events are observed through acccerciser in gedit when selecting text and typing over it: object:text-changed:delete object:text-changed:insert object:text-caret-moved While the Swing program only emits object:text-changed:delete object:text-changed:insert The 'object:text-caret-moved' event is not sent. The attached patch catches the exception and silently ignores it, ensuring the selection-changed event is not sent and the text-caret-moved event is.
Created attachment 123909 [details] Stack trace
Created attachment 123910 [details] [review] Patch
Patch is good. Please commit.
Committed to trunk. Thanks! Closing as FIXED.