Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 252302 - Regression: Constraint bindings don't find client context
Summary: Regression: Constraint bindings don't find client context
Status: VERIFIED FIXED
Alias: None
Product: EMF Services
Classification: Modeling
Component: Validation (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P1 major
Target Milestone: ---   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 249496
  Show dependency tree
 
Reported: 2008-10-27 23:34 EDT by Christian Damus CLA
Modified: 2017-02-24 15:08 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2008-10-27 23:34:38 EDT
A binding of constraints no longer finds client contexts defined by other plug-ins (it's a matter of luck) since the resolution of bug 137213.  The result is occurrences of  "Client context <other plug-in's context id> does not exist in constraint binding defined by plug-in <my plug-in id>" errors.

The problem is, that now each extension is processed separately, parsing first context definitions and then bindings.  However, previously, *all* context definitions were processed before *all* bindings, cutting across extensions.

Probably, late resolution of client context IDs will be required (descriptors, anyone?)
Comment 1 Christian Damus CLA 2008-11-01 13:06:17 EDT
Committed a fix to ensure that constraint-bindings can reference a client-context ID that has not yet been initialized.  If the client-context does not yet exist when binding is parsed from an extension, then a stub is created, to be filled in when its declaration is parsed.  In the event that no such declaration is found by the time validation requires it, the problem will be logged at that time and the bindings disabled.

Also committed a reorganization of the extensions in the JUnit test plug-in to reproduce the problem and test the solution.
Comment 2 Christian Damus CLA 2008-11-03 11:38:49 EST
Fix available in HEAD: 1.3.0.I200811021725.
Comment 3 Christian Damus CLA 2008-11-24 13:11:42 EST
Restore original target after milestones were deranged.