JAL-2046 RFC about cyclic dataset sequence references - should be disallowed ?
authorJim Procter <jprocter@issues.jalview.org>
Tue, 5 Apr 2016 17:36:33 +0000 (18:36 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 5 Apr 2016 17:45:37 +0000 (18:45 +0100)
test/jalview/datamodel/SequenceTest.java

index a66a331..ab11c09 100644 (file)
@@ -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());
   }