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

Fixes for issues discovered when serializing dynamic EMF model #59

Draft
wants to merge 1 commit into
base: snapshot
Choose a base branch
from

Conversation

ideas-into-software
Copy link
Contributor

Fix for issue with custom java.util.Map$Entry, used when creating EMap

Original implementation of custom java.util.Map$Entry was based on official EMF documentation ( see "EMF/FAQ: How do I create a Map in EMF?" https://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF.3F ), which mentioned that either EAttribute or EReference can be used.

However, using EReference resulted in errors when opening such serialized Ecore with 'Ecore Model Editor'; see attached screenshot (Screenshot from 2024-05-23 04-22-40.png).

As it turns out, only using EAttribute is allowed with custom java.util.Map$Entry, used when creating EMap.

Fix for issue with org.gecko.emf.converter used as package name in integration tests

Both integration tests, created as part of work on DTO Converters, used org.gecko.emf.converter as package name in generated dynamic EMF package (org.gecko.emf.converter.tests.DTOToEPackageConverterTest.PACKAGE_NAME, org.gecko.emf.converter.tests.DTOToEObjectConverterTest.PACKAGE_NAME).

This resulted in The name 'org.gecko.emf.converter' is not well formed error when opening such serialized Ecore with 'Ecore Model Editor'

Fix for issue with structural features referencing external eType by URI

This issue is pending fix - please see #57 for more details.


Screenshot from 2024-05-23 04-22-40

 - Fix for issue with custom `java.util.Map$Entry`, used when creating
`EMap`

 - Fix for issue with `org.gecko.emf.converter` used as package name in
integration tests

Signed-off-by: Michael H. Siemaszko <[email protected]>
Copy link

sonarcloud bot commented May 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

1 participant