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.
I tried to remove CookieSet.Factory from CookieSet, but it is impossible be cause the factory is not in cookieSet's map. Cookie created by factory has different class than factory was registered. It is impossible to specify, which item could be removed from cookiesSet's map. Methods like void remove (Class[] cookieClass, CookieSet.Factory factory); void remove (Class cookieClass, CookieSet.Factory factory); could help to resolve this problem.
Why is this request for API enhancement marked as defect? Changing to enhancement.
It is *not* RFE. It *is* bug report. I need to remove factory from CookieSet. I do not want to change API. I just propose clear solution with new methods, but if you fix it without API change, I will be happy too. I do not need new API, I need to remove factory from set. Reverted to DEFECT.
As you wish. Please watch the discussion on nbdev. Adding public/protected methods to openide classes *is* API change. If the fix cannot be done without API change, we either have to change the API or leave your bug report not fixed. Sorry.
After watching the discussion on nbdev I am changing this to enhancement again. I completely agree with Jesse here.
Target milestone -> 3.3.1.
*** Issue 11770 has been marked as a duplicate of this issue. ***
Fixed in trunk. Openide version 2.6. CookieSet 1.13.
I can tell from my experience that the CookieSet code is easy to be broken and hard to define how exactly it should work. Please cover the behaviour of new methods by tests. Reopened, as P3 defect.
Fixed in CookieSetTest 1.4.
verified, the test seems fine.