Community
Participate
Working Groups
Save an OclInEcore file as Ecore with property is_always_typed : OclAny { ordered }; Save could not be completed. Reason: Unsupported pivot type 'OclAny' in Pivot2Ecore Reference pass
property is_always_typed : Classifier<String> { ordered }; is also problematic (a syntax error)
(In reply to comment #1) > property is_always_typed : Classifier<String> { ordered }; > > is also problematic (a syntax error) This is a variant of Bug 367523. OCLinEcore uses UML syntax so straight types are mandated.
(In reply to comment #0) > Save an OclInEcore file as Ecore with > > property is_always_typed : OclAny { ordered }; > > Save could not be completed. > > Reason: > Unsupported pivot type 'OclAny' in Pivot2Ecore Reference pass The immediate fix is to duplicate the visitVoidType case in Pivot2EcoreReferenceVisitor, which allows the Save to complete. But the round trip fails since the reconstructed type is EObject. Need some mechanism to persist a reference to any OCL Standard Library type in Ecore. Currently: Integer etc are mapped reversibly to EBigInteger etc. OclVoid, OclInvalid (and as above, OclAny) are mapped irreversibly to EObject. what about OclElement, OclType, .... ? Options: reference an Ecore copy of the/a OCL Standard Library reference a Pivot copy of the/a OCL Standard Library create a bogus package of local synonym types
Missing visitAnyType added and pushed to master; save no longer fails. Commented out test case added for residual round tripping problem for OclAny.
see also Bug 401938
commit 802cda12248bee4ee3c2e08113686a1d7587d173 pushed to master fopr M4 completes privision of a small oclstdlib.ecore that provides OclAny classes that can be referenced by *.ecore representations.
CLOSED after more than a year in the RESOLVED state.