Menu

#407 java.lang.StackOverflowError

accepted
nobody
OpenJML (24)
OpenJML
5
2015-05-22
2014-05-29
No

I get a java.lang.StackOverflowError when ESCing, with the Z3 tool, at the command line the following program:

import java.util.ArrayList;
public class JMLArrayListExample {
public ArrayList<String> elements;

public JMLArrayListExample () {
    elements = new ArrayList<String>();
}

//@ ensures (elements.contains(s));
public void add(String s){
    elements.add(s);

}

public static void main (String[] args){
    System.out.println("wait");
    JMLArrayListExample jale = new JMLArrayListExample();
    jale.add("hello");

}

}

Discussion

  • David Cok

    David Cok - 2015-05-22
    • labels: --> OpenJML
    • status: open --> accepted
    • Module: none --> OpenJML
     
  • David Cok

    David Cok - 2015-05-22

    Problem reproduced and now in the OpenJML test suite. Not yet fixed.

     

Log in to post a comment.