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

[Bug] Fault effects might use wrong member #10

Open
axel-habermaier opened this issue Nov 24, 2016 · 0 comments
Open

[Bug] Fault effects might use wrong member #10

axel-habermaier opened this issue Nov 24, 2016 · 0 comments
Labels

Comments

@axel-habermaier
Copy link
Contributor

Fault effects might potentially use a wrong member when the member is new'ed by a fault effect that is higher in the transformed type hierarchy. The underlying reason is that the original code binds the fault effect to the original member (because the new'ed one is not in scope as there is no inheritance relation), but the transformed code binds to the new'ed member as the new'ed one is closer once the inheritance hierarchy implementing the fault effects is formed.

Possible resolutions:

  1. (Easy solution) Forbid such (very unlikely) situations with the help of an analyzer.
  2. (Hard solution) Transform the code so that the correct member is used; might not be generally possible in all situations.
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