[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/23860] New: Exception in JComboBox.removeAllItems()
From: |
konqueror at gmx dot de |
Subject: |
[Bug classpath/23860] New: Exception in JComboBox.removeAllItems() |
Date: |
13 Sep 2005 15:02:31 -0000 |
The following program works in Sun's JDK but fails in libgcj6:
cat > crash.java << EOF
import javax.swing.JComboBox;
class crash
{
public static final void main (String args[]) {
JComboBox c = new JComboBox ();
c.addItem ("foo");
c.removeAllItems ();
}
}
EOF
gcj-4.0 --main=crash crash.java
./a.out
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.Vector.elementAt(int) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.DefaultComboBoxModel.getElementAt(int)
(/usr/lib/libgcj.so.6.0.0)
at
javax.swing.plaf.basic.BasicComboBoxUI$ListDataHandler.intervalAdded(javax.swing.event.ListDataEvent)
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.AbstractListModel.fireIntervalAdded(java.lang.Object, int,
int) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.DefaultComboBoxModel.removeAllElements()
(/usr/lib/libgcj.so.6.0.0)
at javax.swing.JComboBox.removeAllItems() (/usr/lib/libgcj.so.6.0.0)
at crash.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
--
Summary: Exception in JComboBox.removeAllItems()
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: konqueror at gmx dot de
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23860
- [Bug classpath/23860] New: Exception in JComboBox.removeAllItems(),
konqueror at gmx dot de <=