[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/27837] New: ArrayIndexOutOfBoundsException in javax.swing.tex
From: |
hendrich at informatik dot uni-hamburg dot de |
Subject: |
[Bug swing/27837] New: ArrayIndexOutOfBoundsException in javax.swing.text.GapContent |
Date: |
31 May 2006 11:32:05 -0000 |
Running the attached testcase (taken out of a larger app) with classpath
cvs 2006.05.31 results in AIOOBEs. The app creates a textarea, writes a
long text into it, and then replaces the long text by a short text - without
explicitly updating the caret position. I didn't bother to remove the
invokeLater stuff (which is required in the original app with multiple threads
writing to the console).
There is already an assertion in GapContent.java, but only after the
out-of-bounds access :-)
java.lang.ArrayIndexOutOfBoundsException: 2695
at
javax.swing.text.GapContent$GapContentPosition.getOffset(GapContent.java:1
12)
at
javax.swing.text.AbstractDocument$LeafElement.getStartOffset(AbstractDocum
ent.java:2310)
at javax.swing.text.PlainView.drawLine(PlainView.java:166)
at javax.swing.text.PlainView.paint(PlainView.java:276)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:255)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:961)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:911)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:990)
at javax.swing.JComponent.paintComponent(JComponent.java:2079)
Best, Norman
--
Summary: ArrayIndexOutOfBoundsException in
javax.swing.text.GapContent
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: roman at kennke dot org
ReportedBy: hendrich at informatik dot uni-hamburg dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27837
- [Bug swing/27837] New: ArrayIndexOutOfBoundsException in javax.swing.text.GapContent,
hendrich at informatik dot uni-hamburg dot de <=