Skip to content

In BA plugin, unparser fails on objects of type BehaviorIntegerLiteral and BehaviorRealLiteral #2236

@Etienne13

Description

@Etienne13

Summary

When unparsing a BA subclause with an object of type BehaviorIntegerLiteral (or BehaviorRealLiterals), the unparser reports the following error: aadlba unparsing failed for : DeclarativeIntegerLiteral.

This is a regression.

Steps to Reproduce

  1. parse the following example
  2. unparse it

the unparser complains because of the unparsing of the integer literal (0 in the example)

package issue2236
public

  data d
  end d;
  
  thread function1
  annex behavior_specification {**
 variables
   d : issue2236::d;
 states
   s : initial complete final state;
 transitions
   s -[on dispatch]-> s {
     d := 0;
     d := 1.0
   };
  **};
  end function1;

end issue2236;

Environment

  • OSATE Version: 2.7.0
  • Operating System: Linux

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions