[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/24920] New: Text components giving assertion errors
From: |
abalkiss at redhat dot com |
Subject: |
[Bug swing/24920] New: Text components giving assertion errors |
Date: |
17 Nov 2005 19:50:05 -0000 |
Many text components are giving the following assertion error basically at
start up or while doing other normal tasks.
java.lang.AssertionError: Unexpected bad caret location: 0
at javax.swing.text.DefaultCaret.setVisible (DefaultCaret.java:886)
at javax.swing.text.DefaultCaret.focusGained (DefaultCaret.java:433)
at java.awt.AWTEventMulticaster.focusGained (AWTEventMulticaster.java:260)
at java.awt.Component.processFocusEvent (Component.java:3045)
at java.awt.Component.processEvent (Component.java:2966)
at java.awt.Container.processEvent (Container.java:926)
at java.awt.Component.dispatchEventImpl (Component.java:4846)
at java.awt.Container.dispatchEventImpl (Container.java:1665)
at java.awt.Component.dispatchEvent (Component.java:2342)
at java.awt.KeyboardFocusManager.redispatchEvent
(KeyboardFocusManager.java:1111)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent
(DefaultKeyboardFocusManager.java:219)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:74)
Attached is a test case demonstrating the bug and indicating why I think it's
happening - the JDK doesn't throw a BadLocationException before the text
component has been shown (or is valid, or something), but we throw it no matter
what and this is causing us to throw the Assertion Error.
--
Summary: Text components giving assertion errors
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: abalkiss at gcc dot gnu dot org
ReportedBy: abalkiss at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24920
- [Bug swing/24920] New: Text components giving assertion errors,
abalkiss at redhat dot com <=