kiniry / Mobius

4 stars 8 forks source link

Using method call in post-condition bug #705

Open atiti opened 11 years ago

atiti commented 11 years ago

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: