Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coercing DataTypes to a Set type automatically in product expression #31

Closed
eclipse-ocl-bot opened this issue Sep 18, 2024 · 4 comments
Closed

Comments

@eclipse-ocl-bot
Copy link
Collaborator

| --- | --- |
| Bugzilla Link | 126336 |
| Status | CLOSED FIXED |
| Importance | P3 major |
| Reported | Feb 03, 2006 07:15 EDT |
| Modified | May 27, 2011 02:41 EDT |
| Version | 1.0.0 |
| Reporter | Shrawanika |

Description

Expression : self.attribute->product(self.attribute)

Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
Collection type conformance failure: (null).(product)
----------------

@eclipse-ocl-bot
Copy link
Collaborator Author

By Christian Damus on Feb 13, 2006 20:11

The issue turned out not to be any problem of coercing values to sets. The Collection::product(Collection(T2)) operation simply was not implemented.

So, now it is. The result of the product operation is a set of tuples. Each tuple is an instance of an instance of the TupleType metaclass, having two EStructuralFeatures named "first" and "second". The "first" type is the element type of the source collection of the product operation call, and the "second" type is the element type of the argument collection.

@eclipse-ocl-bot
Copy link
Collaborator Author

By Nick Boldt on Jan 28, 2008 16:35

Move to verified as per bug 206558.

@eclipse-ocl-bot
Copy link
Collaborator Author

By Ed Willink on May 27, 2011 02:38

Closing after over a year in verified state.

@eclipse-ocl-bot
Copy link
Collaborator Author

By Ed Willink on May 27, 2011 02:41

Closing after over a year in verified state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant