Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332912 - Cache subtype-relationships in the CDOPackageRegistry
Summary: Cache subtype-relationships in the CDOPackageRegistry
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Stefan Winkler CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: Lighter, Faster and Better
Keywords: noteworthy
Depends on:
Blocks: 331619
  Show dependency tree
 
Reported: 2010-12-19 15:56 EST by Stefan Winkler CLA
Modified: 2015-11-12 02:48 EST (History)
3 users (show)

See Also:
stepper: review+


Attachments
Patch-v1 (4.95 KB, patch)
2010-12-19 16:02 EST, Stefan Winkler CLA
no flags Details | Diff
Patch-v2 (8.54 KB, patch)
2010-12-20 08:33 EST, Stefan Winkler CLA
no flags Details | Diff
Patch-v3 (13.95 KB, patch)
2010-12-20 08:39 EST, Stefan Winkler CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Winkler CLA 2010-12-19 15:56:57 EST
Let the CDOPackageRegistry maintain a cache of subtypes (the inverse of eClass.getEAllSuperTypes()). This is needed e.g., to support the resolution of polymorphic cross-references (see Bug 331619), but can be handy for all kinds of metamodel-related logic.
Comment 1 Stefan Winkler CLA 2010-12-19 16:02:12 EST
Created attachment 185506 [details]
Patch-v1

Implementation of package registry subtype cache
Comment 2 Stefan Winkler CLA 2010-12-20 08:33:23 EST
Created attachment 185533 [details]
Patch-v2

Final patch including testcase. To Review.
Comment 3 Stefan Winkler CLA 2010-12-20 08:39:51 EST
Created attachment 185534 [details]
Patch-v3

Sorry. Something was messed up. The previous patch was incomplete. This one should be ok.
Comment 4 Stefan Winkler CLA 2010-12-21 03:00:24 EST
Committed to HEAD
Comment 5 Eike Stepper CLA 2011-06-23 03:41:07 EDT
Available in R20110608-1407
Comment 6 Xingxiao Lu CLA 2015-11-12 01:57:29 EST
The master branch still have this bug.
Comment 7 Xingxiao Lu CLA 2015-11-12 01:59:33 EST
(In reply to Xingxiao Lu from comment #6)
> The master branch still have this bug.

I am very sorry. The bug is https://bugs.eclipse.org/bugs/show_bug.cgi?id=331619
Comment 8 Eike Stepper CLA 2015-11-12 02:48:43 EST
If you hit a problem in the master branch please submit a new bugzilla and describe the effect in detail (incl. stack traces if available).