osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

Exception when serializing EMV2 annex #2648

Closed philip-alldredge closed 2 years ago

philip-alldredge commented 3 years ago

Summary Under specific circumstances an exception is thrown when serializing a model containing an error model library with the text editor closed

Expected behavior Exception should not be thrown. Error type should be created.

Actual behavior Exception is thrown and error type or other created model element does not appear.

Steps To Reproduce The problem seems to only occur when "use types ErrorLibrary;" is in the model.

  1. Create an AADL diagram using the package below.
  2. Close all text editor windows.
  3. Use the palette to create an error type.
  4. Check development environment console. Exception has been thrown. Model change is not made.
package problem
public
    annex EMV2 {**
        error types
            use types ErrorLibrary;
            A: type set {ServiceOmission};
        end types;

    **};
end problem;

Desktop (please complete the following information):

exception.txt

philip-alldredge commented 3 years ago

@smithdtyler this is the issue we found earlier when creating error type extension. It appears to occur whenever the use types ErrorLibrary; statement is in the model.