eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[validation] Refresh Papyrus-emulation in LeakTests #1956

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 530417 | | Status | NEW | | Importance | P3 normal | | Reported | Jan 28, 2018 09:48 EDT | | Modified | Jan 28, 2018 10:44 EDT | | See also | 521642, 530418 | | Reporter | Ed Willink |

Description

Bug 521642 revamps Diagnostician to use EcoreUtil.getAllContents rather than doValidateContents to traverse the containment hierarchy.

doValidateContents is therefore an obsolete API and of course any non-trivial override is likely to be broken.

In my workspace, I see

org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents

org.eclipse.xtext.xbase.validation.XbaseDiagnostician.doValidateContents

org.eclipse.ocl.examples.pivot.tests.MyDiagnostician.doValidateContents

i.e. doValidateContents is adding the root elements that are probably omitted by a simple validation of aResource.getContents().get(0) or UMLUtil.load(...).

However a simple validate everything once should be ok.

Therefore update LeakTests to test whatever Papyrus moves to.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Jan 28, 2018 10:44

(In reply to Ed Willink from comment #0)

Therefore update LeakTests to test whatever Papyrus moves to.

See Bug 530418.