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

Impossible to specify annotations for implicit ports #9

Open
fschopp opened this issue Feb 17, 2016 · 0 comments
Open

Impossible to specify annotations for implicit ports #9

fschopp opened this issue Feb 17, 2016 · 0 comments

Comments

@fschopp
Copy link
Member

fschopp commented Feb 17, 2016

Currently (from RuntimeAnnotatedExecutionTrace#getAnnotation(RuntimeName)):

An annotation A is present on an execution trace E that does not represent an annotated element if A is present on the nearest enclosing execution trace representing an annotated element. For instance, the annotations present on execution trace /module:in:array:1:2 are those present on /module:in:array. If no nearest enclosing element exists, an IllegalStateException exception will be thrown.

However, a module's annotations are never present on any of its ports (both modules and ports are language elements, so the above provision does not apply).

This means that it is impossible to specify annotations for implicit ports, except via overrides. This is potentially a problem because it means that one cannot specify, e.g., what serialization plug-in to use to serialize the value of an input module.

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

No branches or pull requests

1 participant