Skip to content
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

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

Closed
Etienne13 opened this issue Mar 12, 2020 · 0 comments · Fixed by #2237
Assignees
Milestone

Comments

@Etienne13
Copy link
Contributor

Etienne13 commented Mar 12, 2020

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
@Etienne13 Etienne13 added this to the 2.7.1 milestone Mar 12, 2020
@Etienne13 Etienne13 self-assigned this Mar 12, 2020
@Etienne13 Etienne13 changed the title In BA plugin, unparser fails on objects of type BehaviorIntegerLiteral In BA plugin, unparser fails on objects of type BehaviorIntegerLiteral and BehaviorRealLiterals Mar 12, 2020
@Etienne13 Etienne13 changed the title In BA plugin, unparser fails on objects of type BehaviorIntegerLiteral and BehaviorRealLiterals In BA plugin, unparser fails on objects of type BehaviorIntegerLiteral and BehaviorRealLiteral Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant