Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com
o:801.649.6594 f:801.649.6595 On Oct 19, 2007, at 5:21 PM, Adam Heath wrote:
Adam Heath wrote:However, javolution doesn't allow one to do structural changes to the sublist; that's why there's an exception during the add() call.Attached you will find an example that showcases the problem. I'll filea bug with javolution. import java.util.ArrayList; import java.util.List; import javolution.util.FastList; public class JavolutionBug { public static void doListTest(String label, List data) { System.err.println("label[" + label + "]"); try { for (int i = 0; i < 20; i++) { data.add(Integer.valueOf(i)); } List sub = data.subList(5, 10); System.err.println("data=" + data); System.err.println("sub=" + sub); sub.add("abc"); System.err.println("data=" + data); System.err.println("sub=" + sub); } catch (Throwable t) { t.printStackTrace(); } } public static void main(String[] args) throws Exception { doListTest("ArrayList", new ArrayList()); doListTest("FastList", FastList.newInstance()); } }
smime.p7s
Description: S/MIME cryptographic signature