Hello,
i'm using ST4 (4.0.8) and if i want to clone a ST two times; the second clone, st3, may cause an ArrayIndexOutOfBoundsException when i call the method add() on it.
ST st1 = new ST("$key$");
st1.add("toto", "tata");
ST st2 = new ST(st1);
st2.add("key", "value2");
ST st3 = new ST(st1);
st3.add("key", "value3");
Exception :
java.lang.ArrayIndexOutOfBoundsException: 1
at org.stringtemplate.v4.ST.add(ST.java:246)
at com.###(###.java:85)
The clone operation doesn't allow add operations ?