Community
Participate
Working Groups
CDOResource.isLoaded overrides Resource.isLoaded, but violates the contract specified in the API docs of the latter. API doc specifies: "It will be set to true [...] when contents are first added to a resource that isn't loaded. Calling clear for the contents of a resource that isn't loaded, will set the resource to be loaded; this is the simplest way to create an empty resource that's considered loaded." But a new CDOResource keeps returning false after objects have been added to it or it's been cleared. Will attach testcase and patch shortly.
Created attachment 181798 [details] Patch including test case
Created attachment 182012 [details] Patch including testcases Here's a patch and a few new tests in LockingManagerTest, which make my earlier testcase for this Zilla obsolete.
Oops.. that one was for bug 328681. Have moved it there and have obsoleted it here (and restored the original patch attachment.)
I think this fix is worth being ported to 3.0 maintenance- and small enough. Can you do this, Caspar?
Committed to HEAD
(In reply to comment #4) > Can you do this, Caspar? Yes, done: bug 329171.
Available in R20110608-1407