Closed dpgluch closed 5 years ago
The AADL code is wrong. If you want to reference a feature prototype you need to use the prototype
keyword, e.g., insignal: in prototype incoming;
, see section 8.1 in the AADL 2.2 standard.
The change in the standard was introduced to syntactically distinguish
f: in feature classifierproto;
fromf: in prototype featureproto;
. The example in the standard needs to be updated to the new syntax.
Lutz,
Got it thanks.
Have a great holiday season.
Dave
From: Lutz Wrage [mailto:notifications@github.com] Sent: Thursday, December 20, 2018 9:37 AMLutx To: osate/osate2 osate2@noreply.github.com Cc: David P Gluch dpg@sei.cmu.edu; Author author@noreply.github.com Subject: Re: [osate/osate2] Abstract feature prototypes produce error in type declaration (#1665)
The AADL code is wrong. If you want to reference a feature prototype you need to use the prototype keyword, e.g., insignal: in prototype incoming;, see section 8.1 in the AADL 2.2 standard. The change in the standard was introduced to syntactically distinguish
The example in the standard needs to be updated to the new syntax.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/osate/osate2/issues/1665#issuecomment-449019260, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXaqZobByBLhkbWypeJULr4ObTNkzWA-ks5u66B5gaJpZM4ZbI-N.
Summary
Prototypes for features produce an error in the original type declaration for an extension using prototype binding.
Expected and Current Behavior
Get the error message " Couldn't resolve reference to Feature Classifier 'incoming' " in the example from the standard that is included here. The same message results for similar examples in the AADL course. For the course example included here there is the error message "Couldn't resolve reference to Feature Classifier 'comm' for the filtered out feature in the type declaration for filter but the prototype binding seems to work in the extension declaration for filter2.
Steps to Reproduce
Environment