From: SourceForge.net <no...@so...> - 2006-02-25 06:31:08
|
Bugs item #1438493, was opened at 2006-02-24 22:31 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1438493&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: UI: MacOS X-specific Group: Ugly Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: ArrayIndexOutOfBoundsException in open dialog Initial Comment: I managed to trigger an array bounds exception using the file open dialog in OS X. Setup is Java 5 and DrJava beta 20060222-2104. I was able to reproduce it as follows: Type command-o to bring up the file open dialog. The current folder is one containing the buttondemo program from the Java tutorial, which I'd opened the last time I ran DrJava. (Folder contents: ButtonDemo.java and an images subfolder with a couple of gifs in it). Type command-a (select-all). This selects the .java file and the images folder. Click on the ButtonDemo.java entry in the dialog to select it only. Hit return to open the file. The runtime error dialog pops up and shows the following stack trace. But the file seems to open successfully in spite of this, and it can be compiled and executed. java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.Vector.elementAt(Vector.java:435) at apple.laf.AquaDirectoryModel.getValueAt (AquaDirectoryModel.java:227) at apple.laf.AquaFileChooserUI $MacListSelectionModel.isSelectableInListIndex (AquaFileChooserUI.java:2320) at apple.laf.AquaFileChooserUI $MacListSelectionModel.setAnchorSelectionIndex (AquaFileChooserUI.java:2363) at javax.swing.JTable.selectAll(JTable.java:1330) at javax.swing.plaf.basic.BasicTableUI$Actions.actionPerformed (BasicTableUI.java:578) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576) at javax.swing.JComponent.processKeyBinding(JComponent.java: 2763) at javax.swing.JTable.processKeyBinding(JTable.java:3463) at javax.swing.JComponent.processKeyBindings(JComponent.java: 2809) at javax.swing.JComponent.processKeyEvent(JComponent.java: 2726) at java.awt.Component.processEvent(Component.java:5331) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4021) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.KeyboardFocusManager.redispatchEvent (KeyboardFocusManager.java:1810) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent (DefaultKeyboardFocusManager.java:672) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent (DefaultKeyboardFocusManager.java:920) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions (DefaultKeyboardFocusManager.java:798) at java.awt.DefaultKeyboardFocusManager.dispatchEvent (DefaultKeyboardFocusManager.java:636) at java.awt.Component.dispatchEventImpl(Component.java:3907) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:180) at java.awt.Dialog$1.run(Dialog.java:515) at java.awt.Dialog.show(Dialog.java:536) at javax.swing.JFileChooser.showDialog(JFileChooser.java:728) at javax.swing.JFileChooser.showOpenDialog(JFileChooser.java: 620) at edu.rice.cs.drjava.ui.MainFrame.getOpenFiles(MainFrame.java: 2219) at edu.rice.cs.drjava.ui.MainFrame$2.getFiles(MainFrame.java: 252) at edu.rice.cs.drjava.model.AbstractGlobalModel.openFilesHelper (AbstractGlobalModel.java:955) at edu.rice.cs.drjava.model.AbstractGlobalModel.openFiles (AbstractGlobalModel.java:946) at edu.rice.cs.drjava.ui.MainFrame.open(MainFrame.java:2549) at edu.rice.cs.drjava.ui.MainFrame._open(MainFrame.java:2368) at edu.rice.cs.drjava.ui.MainFrame.access$1200(MainFrame.java: 89) at edu.rice.cs.drjava.ui.MainFrame$14.actionPerformed (MainFrame.java:385) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent (DefinitionsPane.java:509) at java.awt.Component.processEvent(Component.java:5331) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4021) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.KeyboardFocusManager.redispatchEvent (KeyboardFocusManager.java:1810) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent (DefaultKeyboardFocusManager.java:672) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent (DefaultKeyboardFocusManager.java:920) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions (DefaultKeyboardFocusManager.java:798) at java.awt.DefaultKeyboardFocusManager.dispatchEvent (DefaultKeyboardFocusManager.java:636) at java.awt.Component.dispatchEventImpl(Component.java:3907) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java: 110) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1438493&group_id=44253 |