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 31664 - Object Browser displays subpackages in Objects Window and clicking on it causes "ClassCastException".
Summary: Object Browser displays subpackages in Objects Window and clicking on it caus...
Status: RESOLVED DUPLICATE of bug 28620
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -S1S-
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 19:21 UTC by kishm
Modified: 2005-12-14 19:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kishm 2003-03-04 19:21:08 UTC
FULL PRODUCT VERSION :
See System Info

>System Info:
  Product Version       = Forte for Java 4,
Enterprise Edition (Build 020624)
  IDE Versioning        = IDE/1 spec=1.43.3
impl=020624
  Operating System      = SunOS version 5.8
running on sparc
  Java; VM; Vendor      = 1.4.0_01; Java
HotSpot(TM) Client VM 1.4.0_01-b03; Sun
Microsystems Inc.
  Java Home             =
/net/nalanda/app01/j2sdk1.4.0_01/jre
  System Locale; Encod. = en; ISO646-US (f4j_ee)
  Home Dir; Current Dir = /home/km131112;
/home/km131112
  IDE Install; User Dir =
/net/nalanda/app01/ffj4; /home/km131112/ffjuser40ee
  CLASSPATH             =
/net/nalanda/app01/ffj4/lib/patches/openide-
compat.jar:/net/nalanda/app01/ffj4/lib/locale/core_f4j.jar:
/net/nalanda/app01/ffj4/lib/locale/core_f4j_ee.jar:/net/nal
anda/app01/ffj4/lib/locale/core_f4j_ee_ja.jar:/net/nalanda/
app01/ffj4/lib/locale/core_f4j_ja.jar:/net/nalanda/app01/ff
j4/lib/locale/core_ja.jar:/net/nalanda/app01/ffj4/lib/local
e/openide_f4j.jar:/net/nalanda/app01/ffj4/lib/locale/openid
e_ja.jar:/net/nalanda/app01/ffj4/lib/locale/updater_ja.jar:
/net/nalanda/app01/ffj4/lib/core.jar:/net/nalanda/app01/ffj
4/lib/openide.jar:/net/nalanda/app01/ffj4/lib/ext/locale/dd
l_ja.jar:/net/nalanda/app01/ffj4/lib/ext/locale/logger_ja.j
ar:/net/nalanda/app01/ffj4/lib/ext/locale/rmi-
ext_ja.jar:/net/nalanda/app01/ffj4/lib/ext/bsh-1_0-
fj.jar:/net/nalanda/app01/ffj4/lib/ext/cmd.jar:/net/nalanda
/app01/ffj4/lib/ext/crimson.jar:/net/nalanda/app01/ffj4/lib
/ext/ddl.jar:/net/nalanda/app01/ffj4/lib/ext/fjscript.jar:/
net/nalanda/app01/ffj4/lib/ext/idlcompilers.jar:/net/naland
a/app01/ffj4/lib/ext/jaas.jar:/net/nalanda/app01/ffj4/lib/e
xt/jcert.jar:/net/nalanda/app01/ffj4/lib/ext/jh.jar:/net/na
landa/app01/ffj4/lib/ext/jnet.jar:/net/nalanda/app01/ffj4/l
ib/ext/jsse.jar:/net/nalanda/app01/ffj4/lib/ext/logger.jar:
/net/nalanda/app01/ffj4/lib/ext/openorb-
1.0.2.jar:/net/nalanda/app01/ffj4/lib/ext/parser.jar:/net/n
alanda/app01/ffj4/lib/ext/pbclient.jar:/net/nalanda/app01/f
fj4/lib/ext/regexp.jar:/net/nalanda/app01/ffj4/lib/ext/rmi-
ext.jar:/net/nalanda/app01/ffj4/lib/ext/terminalemulator.ja
r:/net/nalanda/app01/ffj4/lib/ext/xerces.jar:/net/nalanda/a
pp01/ffj4/lib/ext/jdbc20x.zip:/net/nalanda/app01/j2sdk1.4.0
_01/lib/dt.jar:/net/nalanda/app01/j2sdk1.4.0_01/lib/htmlcon
verter.jar:/net/nalanda/app01/j2sdk1.4.0_01/lib/tools.jar

EXTRA RELEVANT SYSTEM CONFIGURATION :
The error appeared after performing update.

A DESCRIPTION OF THE PROBLEM :
An attempt to select any "sub package" dislayed
in the "Objects" frame, throws Exception.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Click on "Browsing" Tab
2.Select Any Package from the Left most
"Packages" frame
3.Select (Single or double click) any sub
package from the "Object" frame

EXPECTED VERSUS ACTUAL BEHAVIOR :
The "sub package" displayed in the "Objects"
frome is wrong as its not a Object. So on
selecting of any of these sub packages, whould
expand the package and display the Objects in
the selected package.

Or

sub packages should not be displayed int he
Objects frame.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Thu Feb 13 20:36:36 IST 2003:
java.lang.ClassCastException:
org.netbeans.modules.objectbrowser.ClassBrowserHierarchyTra
nslator$MemberFilter
java.lang.ClassCastException:
org.netbeans.modules.objectbrowser.ClassBrowserHierarchyTra
nslator$MemberFilter
        at
org.netbeans.modules.objectbrowser.ClassBrowserHierarchyTra
nslator.getHierarchyForPackage
(ClassBrowserHierarchyTranslator.java:249)
        at
org.netbeans.modules.objectbrowser.ClassBrowserHierarchyTra
nslator.translate(ClassBrowserHierarchyTranslator.java:168)
        at
org.netbeans.modules.objectbrowser.ExplorerBean.refreshNode
s(ExplorerBean.java:431)
        at
org.netbeans.modules.objectbrowser.ExplorerBean.dataItemAva
ilable(ExplorerBean.java:543)
        at
javax.infobus.DefaultController.fireItemAvailable
(DefaultController.java:90)
        at
javax.infobus.InfoBus.fireItemAvailable(InfoBus.java:995)
        at
org.netbeans.modules.objectbrowser.ExplorerBean$1.propertyC
hange(ExplorerBean.java:141)
        at
java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:252)
        at
org.openide.explorer.ExplorerManager.setSelectedNodes
(ExplorerManager.java:204)
        at
org.openide.explorer.view.ListView.selectionChanged
(ListView.java:360)
        at
org.openide.explorer.view.ListView$Listener.valueChanged
(ListView.java:741)
        at
javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:187)
        at
javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:167)
        at
javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:214)
        at
javax.swing.DefaultListSelectionModel.changeSelection
(DefaultListSelectionModel.java:402)
        at
javax.swing.DefaultListSelectionModel.changeSelection
(DefaultListSelectionModel.java:411)
        at
javax.swing.DefaultListSelectionModel.setSelectionInterval
(DefaultListSelectionModel.java:435)
        at
javax.swing.JList.setSelectionInterval(JList.java:1603)
        at
javax.swing.plaf.basic.BasicListUI$MouseInputHandler.adjust
FocusAndSelection(BasicListUI.java:1332)
        at
javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseP
ressed(BasicListUI.java:1294)
        at
java.awt.AWTEventMulticaster.mousePressed
(AWTEventMulticaster.java:218)
        at
java.awt.AWTEventMulticaster.mousePressed
(AWTEventMulticaster.java:217)
        at
java.awt.AWTEventMulticaster.mousePressed
(AWTEventMulticaster.java:217)
        at
java.awt.Component.processMouseEvent(Component.java:5018)
        at
java.awt.Component.processEvent(Component.java:4818)
        at
java.awt.Container.processEvent(Container.java:1525)
        at
java.awt.Component.dispatchEventImpl(Component.java:3526)
        at
java.awt.Container.dispatchEventImpl(Container.java:1582)
        at
java.awt.Component.dispatchEvent(Component.java:3367)
        at
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3359)
        at
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3071)
        at
java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3004)
        at
java.awt.Container.dispatchEventImpl(Container.java:1568)
        at
java.awt.Window.dispatchEventImpl(Window.java:1581)
        at
java.awt.Component.dispatchEvent(Component.java:3367)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:191)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
        at
java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
        at
java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
        at
java.awt.EventDispatchThread.run
(EventDispatchThread.java:98)

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER WORKAROUND :
Do not select the folder in the middle "Objects"
frame. Select them from the Left "Packages"
frame only.
Comment 1 qpolarbear 2005-12-14 19:03:49 UTC
This appears to be the same as issue 28620.

*** This issue has been marked as a duplicate of 28620 ***