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.
[Main trunk build #200107130100] 1. Start new build in multiuser mode (so that "sampledir" directory with examples will be mounted) 2. Switch to "Browsing" WS. 3. Click on "Examples" package in "Packages" window in [Object Browser]. 4. Subpackages of "Examples" package will appear in "Objects" window of [Object Browser] 5. Click on some of these packages listed in "Objects" window of [Object Browser] -> java.lang.ClassCastException: org.netbeans.modules.objectbrowser.ClassBrowserHierarchyTranslator$MemberFilter will appear. Note, that earlier before builds [Main trunk build #200107130100] [Main trunk build #200107120100] it wasn't possible to list sub-packages in "Objects" window. Perhaps filtering could change with new Projects implementation, please consult with Projects guys if neccessary or reassign.
Created attachment 1867 [details] thrown ClassCastException
I investigated problem public DataObjectFilter () { this (new Class [] {}); DataLoader[] loaders = TopManager.getDefault ().getLoaderPool ().toArray (); int i, k = loaders.length; for (i = 0; i < k; i++) { Class c = loaders [i].getRepresentationClass (); if (DataFolder.class.isAssignableFrom (c)) continue; acceptedDOs.put (c, c); } } Array of loaders includes variable which is instanceof DataObject, so in acceptedDOs is included DataObject, due to this filtering does not work.
Assigning to Vita.
Data loader org.netbeans.core.windows.layers.WSLoader declares 'DataObject' as its representation class. It seems that it causes problems in objects filtering, please use more specific representation class.
Fixed: I changed representation class of org.netbeans.core.windows.layers.WSLoader from DataObject to org.netbeans.core.windows.layers.WindowManagerData.
gone for long time...