Bug 187513 - File selection window throws exception
Summary: File selection window throws exception
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.4.2-gcj-compat
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Fitzsimmons
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-31 15:33 UTC by Pedro Fernandes Macedo
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-26 18:03:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pedro Fernandes Macedo 2006-03-31 15:33:02 UTC
When using a JFileChooser using this piece of code:
JFileChooser filechooser = new JFileChooser();
filechooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
filechooser.showOpenDialog(frame);
 
The filechooser will show a blank list of files, as if the directory was empty
(which in my tests wasnt the case, since the filechooser was opening my home
directory). If you click on the white area where the files should be shown, the
following error:

Exception during event dispatch:
java.lang.IndexOutOfBoundsException
   at java.util.BitSet.set (libgcj.so.7)
   at javax.swing.DefaultListSelectionModel.setSelectionInterval (libgcj.so.7)
   at javax.swing.JList.setSelectedIndex (libgcj.so.7)
   at javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseClicked
(libgcj.so.7)
   at java.awt.AWTEventMulticaster.mouseClicked (libgcj.so.7)
   at java.awt.Component.processMouseEvent (libgcj.so.7)
   at java.awt.Component.processEvent (libgcj.so.7)
   at java.awt.Container.processEvent (libgcj.so.7)
   at java.awt.Component.dispatchEventImpl (libgcj.so.7)
   at java.awt.Container.dispatchEventImpl (libgcj.so.7)
   at java.awt.Component.dispatchEvent (libgcj.so.7)
   at java.awt.LightweightDispatcher.handleEvent (libgcj.so.7)
   at java.awt.Container.dispatchEventImpl (libgcj.so.7)
   at java.awt.Window.dispatchEventImpl (libgcj.so.7)
   at java.awt.Component.dispatchEvent (libgcj.so.7)
   at java.awt.EventQueue.dispatchEvent (libgcj.so.7)
   at java.awt.EventDispatchThread.run (libgcj.so.7)

The same jar works perfectly with the sun jvm. If necessary , I can provide the
source files outside of bugzilla (it's a custom software for one of our clients).

Comment 1 Thomas Fitzsimmons 2006-07-26 18:03:07 UTC
Fixed in Rawhide by libgcj backport.



Note You need to log in before you can comment on or make changes to this bug.