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.
Currently DataObject uses CookieSet which can not be filled on demand. In addition to this it should be able to use Lookup to solve this performace issue.
IMHO this is invalid (and JavaDataObject should be changed in issue #41084). The API contract in DataObject is public Node.Cookie getCookie(Class c); public static final String PROP_COOKIE = Node.PROP_COOKIE; You can implement that however you like. In fact it is lighter-weight than lookup because you do not need to create a separate Lookup object. You are certainly not required to use CookieSet; it is there only as a convenience. (Anyway CookieSet.Factory is intended to make it possible to use CookieSet and still compute particular cookies on demand; not sure if this is what you mean by "fill on demand" or not.)
Even I would like DataObject to have getLookup() method, certainly not for the reasons stated in this bug. CookieSet can use the Factory and as Jesse stated you can implement getCookie anyway you like (beyond those mentioned for example also by delegating to your own lookup). So closing as invalid, of course reopen if we've misunderstood something.
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.