This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 28500

Summary: ArrayIndexOutOfBoundsException while searching in explorer
Product: platform Reporter: _ gtzabari <gtzabari>
Component: ExplorerAssignee: Jiri Rechtacek <jrechtacek>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: OS/2   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2002-11-05 21:28:29 UTC
3.4 dev build 200210290100
IBM JDK 1.3.1

   I type some text while EXPLORER has focus. This
triggers the search box to pop up.. When I finish
typing the text and press either ENTER or ESC I get:

java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at
java.awt.Container.remove(Container.java:467)
        at
java.awt.Container.remove(Container.java:505)
        at
org.openide.explorer.view.TreeView$ExplorerTree.removeSearchField(TreeView.java:1284)
        at
org.openide.explorer.view.TreeView$ExplorerTree.access$400(TreeView.java:1104)
        at
org.openide.explorer.view.TreeView$4.actionPerformed(TreeView.java:1152)
        at
javax.swing.JTextField.fireActionPerformed(JTextField.java:442)
        at
javax.swing.JTextField.postActionEvent(JTextField.java:607)
        at
javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:718)
        at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1396)
        at
javax.swing.JComponent.processKeyBinding(JComponent.java(Compiled
Code))
        at
javax.swing.JComponent.processKeyBindings(JComponent.java:2163)
        at
javax.swing.JComponent.processKeyEvent(JComponent.java:2100)
        at
javax.swing.text.JTextComponent.processKeyEvent(JTextComponent.java:2697)
        at
java.awt.Component.processEvent(Component.java:3637)
        at
java.awt.Container.processEvent(Container.java:1195)
        at
java.awt.Component.dispatchEventImpl(Component.java:2678)
        at
java.awt.Container.dispatchEventImpl(Container.java:1244)
        at
java.awt.Component.dispatchEvent(Component.java:2581)
        at
java.awt.LightweightDispatcher.processKeyEvent(Container.java:2191)
        at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2171)
        at
java.awt.Container.dispatchEventImpl(Container.java:1231)
        at
java.awt.Window.dispatchEventImpl(Window.java:964)
        at
java.awt.Component.dispatchEvent(Component.java:2581)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:434)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:172)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:131)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:118)
Comment 1 Jiri Rechtacek 2002-11-21 15:01:59 UTC
It's reproducible with sun jdk1.3.1 on IDE in SDI mode.
Comment 2 Jiri Rechtacek 2002-11-21 16:53:58 UTC
fixed, the search field is removed only once
Comment 3 Lukas Hasik 2003-09-03 11:17:06 UTC
verified -> long time ago