| Summary: | [library,validator,evaluator] The type of TypeExp should be classifier (C) | ||
|---|---|---|---|
| Product: | [Modeling] OCL | Reporter: | Adolfo Sanchez-Barbudo Herrera <adolfosbh> |
| Component: | Core | Assignee: | OCL Inbox <mdt-ocl-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | alexander.igdalov, ed |
| Version: | 1.1.0 | Keywords: | plan |
| Target Milestone: | 3.1.0 | Flags: | ed:
indigo+
|
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | OCL 2.1 Compliance | ||
| Bug Depends on: | |||
| Bug Blocks: | 156363 | ||
|
Description
Adolfo Sanchez-Barbudo Herrera
Investigate in the 1.2 release. ValidationVisitor.visitTypeExp checks that 1) eType is a TypeType 2) referredType is not null The first is just an implementation practice. The second is an OCL constraint. The first incorrectly diagnoses QVT operation calls for which the implicit source is the Transformation which is both a Package and a Classifier. For QVT it is unnecessary to wrap the Transformation up in a TypeType to provide the TypeExp eType argument. Please remove the MDT-specific TypeType validation. [The implementation of ValidationVisitor is very inflexible: The private constructor prohibits derivation to mend derived semantics. The direct passing of this to child validations, prevents re-use by a wrapper delegating to the ValidationVisitor instance.] [The internal validation traversal of composed content seems to conflict with the EValidator policy making it a bit awkward to use a ValidationVisitor where an OCLValidator was wanted.] [Visitor is documented as an OCLExpression visitor. However it also supports Constraint which is not an OCLExpression. But it does not support TypeType. Surely there should be some validation class that realises all OCL classes?] Adolfo: Two years later, a change of team and a change of OCL specification. My comment #2 was a Validator winge. Christian's newgroup comment seemed to suggest a TypeType change to OclAny or Classifier. Your original newsgroup posting seemed to be about library extensibility. Could you review the original newsgroup posting and give this Bugzilla a clear focus. Perhaps one or two of the above themes should be new bugs, or merge with other bugs. (In reply to comment #3) > Adolfo: Two years later, a change of team and a change of OCL specification. > > My comment #2 was a Validator winge. > > Christian's newgroup comment seemed to suggest a TypeType change to OclAny or > Classifier. > > Your original newsgroup posting seemed to be about library extensibility. > > Could you review the original newsgroup posting and give this Bugzilla a clear > focus. Perhaps one or two of the above themes should be new bugs, or merge with > other bugs. Hi Ed. I think that this bugzilla exposes one of cases which may have helped to change the 2.1 specification in favour of removing TypeType and oclType. What about stating this bug as the TypeType/oclType removal ?. Bug 259031 could depend on this one. Cheers, Adolfo. New evaluator has more coherent treatment of TypeExp and official parsing of type expressions. Resolved for Indigo is 3.1.0 not 3.2.0. Closing all bugs resolved in Indigo. |