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

Compiler crash (IndexOutOfBounds exception) when using associated object in statemachine guard #1492

Closed
varrodan opened this issue Aug 27, 2019 · 0 comments · Fixed by #1500

Comments

@varrodan
Copy link

commented Aug 27, 2019

Specify a Brief Description

Compiler crashes (both in Umple Eclipse and in UmpleOnline) with IndexOutOfBounds exception when trying to parse the following piece of code where guards in three statemachine transitions indirectly refer to objects accessed via named associations.

Give the minimum Steps to Reproduce

  1. Parse the following minimal working example:
    (The problem disappears if one comments out any of the three transitions!)
class OtherClass {
  Integer row;  
}

class Statemachine {
  * -> 1 OtherClass other;
  Boolean cond; 
  sm {
    s1 {
      event1[cond && other.row > 4] -> s2;
      event1[cond && other.row == 3] -> s3;
      event1[cond && other.row == 4] -> s1;
    }
    s2 {}
    s3 {}
 }
}

Describe the expected result that didn't happen

Expected results:
A statemachine rendered/parsed with three states and three outgoing transitions.

Actual Result

Actual results:
stack trace

Labelling and Assigning

TimLethbridge added a commit that referenced this issue Sep 10, 2019
TimLethbridge added a commit that referenced this issue Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.