From 433fbd04619f73e5283a69888d163e7426d4a400 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 5 Apr 2016 18:36:33 +0100 Subject: [PATCH] JAL-2046 RFC about cyclic dataset sequence references - should be disallowed ? --- test/jalview/datamodel/SequenceTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/jalview/datamodel/SequenceTest.java b/test/jalview/datamodel/SequenceTest.java index a66a331..ab11c09 100644 --- a/test/jalview/datamodel/SequenceTest.java +++ b/test/jalview/datamodel/SequenceTest.java @@ -336,6 +336,10 @@ public class SequenceTest * sequence. Test shows no infinite loop results. */ sq.getDatasetSequence().setSequenceFeatures(null); + /** + * is there a usecase for this ? setDatasetSequence should throw an error if + * this actually occurs. + */ sq.getDatasetSequence().setDatasetSequence(sq); // loop! assertNull(sq.getSequenceFeatures()); } -- 1.7.10.2