A method call in Java JML post condition not recognized correctly by Beetlz in BON and therefore Beetlz shows a error marker.
Example:
/* JAVA /
/ protected method in Java that returns a computed value /
protected /@ pure @*/ int get_no_of_elected() {...}
/* method in same class that uses protected method in contract */
//@ requires seats >= 0;
//@ ensures get_no_of_elected() >= seats;
public void setElected(int seats);
--BON--
--feature in the same class in BON
get_no_of_elected : INTEGER
A method call in Java JML post condition not recognized correctly by Beetlz in BON and therefore Beetlz shows a error marker.
Example: /* JAVA / / protected method in Java that returns a computed value / protected /@ pure @*/ int get_no_of_elected() {...}
/* method in same class that uses protected method in contract */ //@ requires seats >= 0; //@ ensures get_no_of_elected() >= seats; public void setElected(int seats);
--BON-- --feature in the same class in BON get_no_of_elected : INTEGER
set_elected -> seats : INTEGER require seats >= 0; ensure get_no_of_elected >= seats; end
Error tooltip: Multiple markers at this line: