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.
Per the thread here: http://openide.netbeans.org/servlets/ReadMsg?list=dev&msgNo=19788 I can do a lookup on a node and successfully get back an arbitrary object that was stored there (e.g. in the performAction(Node[]) method of CookieAction). However, this fails in many cases where the node is actually a DataShadow.ShadowNode instead of the original node. It seems that the DataShadow.ShadowNode lookup only returns itself, the DataShadow it represents and objects implementing Node.Cookie. No other objects are returned from the lookup.
True. This is the result of ShadowNode extending FilterNode and overwriting its getCookie, then the filternode's lookup does needs to delegate to the getCookie method and as such all other objects from original's node lookup get lost. The most of all I would rather close this issue, but I am afraid it blocks issue 62707, so I am at least adding this as a blocker.
Created attachment 31159 [details] Fix of the problem, but not compatible fix, will need a lot of tuning
If the latest patch from issue 73015 is fixed, this issue will get fixed as well. At least it seems so: http://www.netbeans.org/nonav/issues/showattachment.cgi/35647/DataObjectLookupWithCookieSetWorks.diff
Fixed as part of issue 62707: Checking in openide/loaders/test/unit/src/org/openide/loaders/DataShadowLookupTest.java; /shared/data/ccvs/repository/openide/loaders/test/unit/src/org/openide/loaders/DataShadowLookupTest.java,v <-- DataShadowLookupTest.java initial revision: 1.1