eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[editors] Strange errors after simple edit #1587

Closed eclipse-ocl-bot closed 2 hours ago

eclipse-ocl-bot commented 2 hours ago

| --- | --- | | Bugzilla Link | 473249 | | Status | RESOLVED FIXED | | Importance | P3 normal | | Reported | Jul 22, 2015 01:42 EDT | | Modified | Oct 29, 2015 10:16 EDT | | Reporter | Ed Willink |

Description

Editing /org.eclipse.ocl.examples.build/model/UML2EcoreMapping.ecore with the OCLinEcore editor to remove the quotes in line 9

body: 'nameLabel(newName)' + ' <= ' + 'operationLabels(oldOperations)';

leads to numerous errors at line 118.

eclipse-ocl-bot commented 2 hours ago

By Ed Willink on Jul 22, 2015 01:47

The problem is a failure to fully eliminate the stale CompleteInheritance instances.

The model injects implicit opposites into the UML metamodel and so an edit of the user model requires a UML inheritance refresh too. Perhaps this could be optimized. More likely auto-generation should get it right in the first place.

The stale UML Type/Classifier inheritances are common and so this may be a more repeatable version of a longstanding problem.

Simple fix. uninstall the inheritance in PartialPackages.uninstalled(CompleteClassInternal).

eclipse-ocl-bot commented 2 hours ago

By Ed Willink on Jul 26, 2015 09:20

commit 31325fca49157f24a78da477f4a358148612f327 pushed to maintenance/R6_0 for SR1

commit fdf8680e8db9b73f4944b755d815ddaec043ced9 pushed to master for M1

eclipse-ocl-bot commented 2 hours ago

By Ed Willink on Oct 29, 2015 10:16

Bug 480991 has been marked as a duplicate of this bug.