| Summary: | [EFacet] Facets can't be correctly used when we extends an object of a parent meta-model | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Vincent Lorenzo <vincent.lorenzo> | ||||||||
| Component: | EMF-Facet | Assignee: | Gregoire Dupe <gdupe> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P2 | CC: | emft.facet-inbox, gdupe | ||||||||
| Version: | unspecified | Flags: | gdupe:
indigo+
gdupe: juno+ gdupe: kepler+ |
||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 359793 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Vincent Lorenzo
Created attachment 204490 [details]
This patch corrects the bug (file FacetContext)
(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Can you commit this patch for SR2 or for Juno?
Best Regards,
--
Vincent Lorenzo
Created attachment 204494 [details]
This plugin provides a facet to reproduce easily the described bug
(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Created attachment 204546 [details]
Another path proposition
Vincent,
I do not understand the goal of your patch. The method org.eclipse.emf.ecore.EClass.isSuperTypeOf(EClass) should do a good job (excluding the case of EObject). That’s why I suppose that a test on EObject would be enough.
What do you think of my proposition?
Regards,
Grégoire
Hi Grégoire, you're right, my patch was too complex for that! Your test on EObject is efficient and sufficient. Regards, Vincent Comment on attachment 204546 [details]
Another path proposition
This patch doesn't cause any test regression.
I've then committed this patch.
Trunck: Committed revision 2664.
Branch 0_2_1: Committed revision 2665.
This bug can be marked has fixed. This bug can be marked as closed fixed. |