JAL-2046 RFC about cyclic dataset sequence references - should be disallowed ?
[jalview.git] / 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());
   }