-
Notifications
You must be signed in to change notification settings - Fork 23
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
ST6RI-770 Computing the derived property View::exposedElement causes an exception #565
Conversation
- Also added a test for the ViewUsage::exposedElement derived property computation to demonstrate that the reported bug is fixed.
I'm testing this but I could not reproduce this problem with your test case:
was parsed without an error:
caused an exception you mentioned.
So let me suggest to change the xpect test case. |
That's a different exception. The bug was not in parsing your first example. It was in calling the The bug was discovered by trying to |
Yes. The exception trace and steps to reproduce are in the Jira bug report, but I didn't all of that into the PR description. |
The parse exception seems to be a problem with the ANTLR grammar generated by Xtext. The odd thing is that the problem does not happen for |
This PR fixes a bug that was introduced in PR #554 (Implement invocation delegates for operations).
The
Import_importedMembers_InvocationDelegate
handles the implementation of theImport::importedMembers
operation for all concrete specializations of the abstract metaclassImport
. Unfortunately, the classImport_importedMembers_InvocationDelegate
was also left abstract in PR #554, which means it could not be instantiated when the operation was invoked. The bug presented itself in a failure to compute the derived value for theViewUsage::exposedElement
property, whose implementation callsimportedMembers
onExpose
relationships, which are kinds ofImport
relationships (this happens, e.g., when doing a%publish
or%view
in Jupyter on a view usage with an expose).This PR includes the following changes:
Import_importedMembers_InvocationDelegate
class concrete, which resolves the reported bug.Expose
to avoid a possibleParseException
on an ill-formedexpose
declaration.Note. Since the 2024-04 release has already been tagged, the changes from this PR will be included in an incremental 2024-04.1 release.