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

fix(test): CtGenerationTest#testGenerateRoleHandler egg/chicken problem #2087

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

Fix of problem reported in #2085

When the Spoon model is changed, then we have to generate RoleHandlers which fits to such modified Spoon model. But role handlers generator internally uses Pattern which uses Metamodel which uses RoleHandlers - expects that they fit to the model - ... so it fails if RoleHandlers are not fitting... and it is then not possible to generate new RoleHandlers.

Solution -> this PR: In case of generating of RoleHandlers the Metamodel is switched to special mode where RoleHandlers are not used, but it uses slow Java reflection instead to access Spoon model attributes.

@monperrus monperrus merged commit 3c44cfc into INRIA:master Jun 19, 2018
@surli surli mentioned this pull request Jun 25, 2018
@pvojtechovsky pvojtechovsky deleted the fixTestGenerateRoleHandler branch September 1, 2018 07:49
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.

2 participants