public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/19862] New: Swing JTextField fails with StringIndexOutOfBoundsException
@ 2005-02-09 17:50 hendrich at informatik dot uni-hamburg dot de
  2005-02-13  0:20 ` [Bug SWING/19862] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hendrich at informatik dot uni-hamburg dot de @ 2005-02-09 17:50 UTC (permalink / raw)
  To: java-prs

Entering text into a JTextField fails with an StringIndexOutOfBoundsException,
triggered by a problem in GapContent or AbstractDocument.getText().
Tested with gcc-4.0-20050130 snapshot and a current (2005.02.09) cvs
checkout of gui-branch-20040128:

java.lang.StringIndexOutOfBoundsException
   at java.lang.StringBuffer.substring(int, int) (/usr/lib/libgcj.so.6.0.0)
   at javax.swing.text.GapContent.getString(int, int)
(/usr/lib/lib-javax-swing.so.0.0.0)
   at javax.swing.text.AbstractDocument.getText(int, int)
(/usr/lib/lib-javax-swing.so.0.0.0)
   at javax.swing.text.FieldView.getPreferredSpan(int)
(/usr/lib/lib-javax-swing.so.0.0.0)


Testcase attached. Note that the calculator functionality is stripped off
to make the testcase shorter. (This is slightly unfair for gcj, because
the expression parser does work with gcj.)

-- 
           Summary: Swing JTextField fails with
                    StringIndexOutOfBoundsException
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: AWT
        AssignedTo: fitzsim at redhat dot com
        ReportedBy: hendrich at informatik dot uni-hamburg dot de
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19862


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-16  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19862-9150@http.gcc.gnu.org/bugzilla/>
2005-10-16  1:48 ` [Bug swing/19862] Swing JTextField fails with StringIndexOutOfBoundsException pinskia at gcc dot gnu dot org
2005-02-09 17:50 [Bug AWT/19862] New: " hendrich at informatik dot uni-hamburg dot de
2005-02-13  0:20 ` [Bug SWING/19862] " pinskia at gcc dot gnu dot org
2005-06-03 14:54 ` roman at kennke dot org
2005-08-24 19:30 ` [Bug swing/19862] " fitzsim at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).