Skip to content

AADL file does not open in Editor when there is a Syntax error on subcomponent type and BA clause in Component #2401

Description

@dblouin

Summary

The following AADL file does not open in the OSATE AADL textual editor due to a simple syntax error. The editor crashes before rendering the file.

Expected and Current Behavior

Editor should open normally and the syntax error should be marked.

Steps to Reproduce

  1. Create an AADL file with the code below in OSATE
  2. Open the file with the AADL textual editor
package test
public
	system test
	end test;

	subprogram My_Subprogram
		features
			my_par: out parameter My_Datatype;
	end My_Subprogram;

	system implementation test.impl
		subcomponents
			sub: data My_Datatyp; --syntax error causing the editor to crash
		annex behavior_specification {**
         states
            init_state : initial complete state;
            final_state : final state;
          transitions
            dispatchTransition : init_state -[on dispatch]-> init_state {
              My_Subprogram ! (sub)
            };
        **};
	end test.impl;

	data My_Datatype
	end My_Datatype;
end test;

Environment

  • OSATE Version: 2.6.0 V Final
  • Operating System: Windows 7

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions