Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332912

Summary: Cache subtype-relationships in the CDOPackageRegistry
Product: [Modeling] EMF Reporter: Stefan Winkler <stefan>
Component: cdo.coreAssignee: Stefan Winkler <stefan>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 CC: jon, lothar, lu.xingxiao
Version: 4.0Keywords: noteworthy
Target Milestone: ---Flags: stepper: review+
Hardware: All   
OS: All   
Whiteboard: Lighter, Faster and Better
Bug Depends on:    
Bug Blocks: 331619    
Attachments:
Description Flags
Patch-v1
none
Patch-v2
none
Patch-v3 none

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).