-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error message on connection when starting a flow source implementation with a data subcomponent #1987
Comments
I get source and destination errors in an end to flow destination in the following example:
Here I get errors on
|
After some time in the debugger, I have found that the flow sink case in Of course the problem here is that we shouldn't be reporting an error in this case and we should be checking that I feel better knowing it's trying to report an error because it didn't make sense that the flow source and flow sink cases would be handled differently. |
The case is missing appropriate error checking too, I think. I think I need to add checks in this case that the named data component in the connection is the same as the one in the flow. |
The code for checking connections vs. subcomponents in flows is in method
(The source code for checking connection -> subcomponent) is similar around line 1567.) But this doesn't work. The first part checks if The other part is trying to deal the case of the connection being a parameter connection, but it has other problems. If I try to make an example that creates a flow from a subprogram, it doesn't work (which I think we already have an issue for):
Looking at flow source
If I change it to |
Fixed Still need to fix |
Fixed Still need unit tests |
Added Unit tests |
Summary
AADL allows a flow source implementation to begin with a data subcomponent. However, the current OSATE implementation gives an error on the subsequent connection in the flow implementation when you try to do this.
Expected and Current Behavior
The expected behavior is that there should not be an error reported on the declarative model. In actuality there is an error of the form
Interestingly, there is no analogous error when ending a flow sink implementation at a data subcomponent.
Steps to Reproduce
Consider the example
OSATE will show an error marker on the connection identifier
c
in the flow source implementationfsrc
ofT.i
. The error isInterestingly there is no similar error in the flow sink implementation
fsnk
ofTT.i
.The error comes from
Aadl2JavaValidator.checkFlowConnectionEnds()
. In this case, the source of the connection is the data subcomponent but the connection source context isnull
. It seems like the method is not considering this case, but instead expects the connection source to be a feature of a subprogram?The text was updated successfully, but these errors were encountered: