-
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
Exception when serializing EMV2 #1327
Comments
Tests involving annexes must use Aad2UiInjectorProvider. |
Okay. Good to know. This issue was originally seen in the graphical editor. The test was just written to make it easier to reproduce. |
I have updated the issue to use Aadl2UiInjectorProvider in the test case. However, rerunning the test case while using Aadl2UiInjectorProvider results in the same result. |
This can also occur when deleting classifiers in the graphical editor if the model contains EMV annex. |
This is also an issue in the use types step of the FHA workflow. |
The unparser must be public, other exceptions are from the emv2 formatter. |
Using the test case below, an exception is thrown. This was found while working with the graphical editor. In the graphical editor's case, the save appears to succeed but it is unclear what the side effects are.
There are multiple problems demonstrated by the test case. The first error can be resolved by making EMV2AnnexUnparser public. Once that is done, other exceptions will be thrown. The latter exceptions only occur if there are more than one EMV2 subclause in the package.
Interestingly, the test does not fail even though many exceptions are thrown. I believe this is due to the exception being thrown in another thread. I am unaware of a mechanism to test for such errors.
Steps to Reproduce
Test Case
Environment
The text was updated successfully, but these errors were encountered: