google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Do activity not generating exit action when none specified #644

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*What steps will reproduce the problem?*
{{{
class X {
  sm {
    s1 {
      do {System.out.println("something");};
    }
    s2 {}
  }
}
}}}

*What is the expected output? What do you see instead*
When the above code is generated into Java, I think that exit methods for 
states s1 and s2 should be generated. Currently in the generated code, exit 
methods are being called but they are not defined. The Java code will not 
compile. 

In the `setSm` method there are calls to `exitS1` and `exitS2`. These two exit 
methods are currently not being produced.

Original issue reported on code.google.com by ac.ring...@gmail.com on 9 Oct 2014 at 11:56

GoogleCodeExporter commented 9 years ago
This is also occurring for exit and entry actions in state machines with no 
transitions.

class X{
  sm{
    s1{
      entry / { entryAction(); }
    }
    s2{
      exit / {exitAction(); }
    }
  }
}

Original comment by ac.ring...@gmail.com on 18 Nov 2014 at 7:04

GoogleCodeExporter commented 9 years ago
A fix for this issue in was committed in r4789

Original comment by ac.ring...@gmail.com on 21 Nov 2014 at 11:35

GoogleCodeExporter commented 9 years ago

Original comment by ac.ring...@gmail.com on 2 Dec 2014 at 8:52