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

When a eClassifiers contains an eStructuralFeatures and eOperations with the same nane an error occurs #7

Closed
3 tasks done
samatstariongroup opened this issue Jul 25, 2022 · 0 comments
Labels

Comments

@samatstariongroup
Copy link
Member

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the EcoreNetto
  • I have searched open and closed issues to ensure it has not already been reported

Description

The Resource class keeps record of almost all EObject instances in a Dictionary<string, EObject>. In case an element contains eStructuralFeatures and eOperations that have the same name, an exception occurs when trying to add them to the dictionary because the key will be the same.

add the type-name as part of the key, this means refactoring the BuildIdentifier method of the ENamedElement class using the following syntax: EOperation::... (using double :: to seperate type from identifier.

Steps to Reproduce

System Configuration

  • EcoreNetto: 1.1.0
  • Environment (Operating system, version and so on):
  • .NET Framework version:
  • Additional information:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant