JAL-2046 stack trace for implementation warning
authorJim Procter <jprocter@issues.jalview.org>
Thu, 4 Aug 2016 19:53:40 +0000 (20:53 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 4 Aug 2016 19:53:40 +0000 (20:53 +0100)
src/jalview/datamodel/Sequence.java

index a857712..88f4308 100755 (executable)
@@ -307,8 +307,9 @@ public class Sequence extends ASequence implements SequenceI
               && datasetSequence.getSequenceFeatures() != null
               && datasetSequence.getSequenceFeatures().length > 0)
       {
-        System.err
-              .println("Warning: JAL-2046 side effect ? Possible implementation error: overwriting dataset sequence features by setting sequence features on alignment");
+        new Exception(
+                "Warning: JAL-2046 side effect ? Possible implementation error: overwriting dataset sequence features by setting sequence features on alignment")
+                .printStackTrace();
       }
       datasetSequence.setSequenceFeatures(features);
     }