JAl-1421 fix method reflection argument (properly this time)
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Jun 2015 14:05:35 +0000 (15:05 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 8 Jun 2015 14:05:35 +0000 (15:05 +0100)
src/MCview/PDBfile.java

index d81e734..4039cdd 100755 (executable)
@@ -379,11 +379,11 @@ public class PDBfile extends jalview.io.AlignFile
         final Object[] args = new Object[]
         { new FileParse(getDataName(), type) };
         Object jmf = constructor.newInstance(args);
-        Alignment al = new Alignment((SequenceI[]) cl.getMethod(
+        AlignmentI al = new Alignment((SequenceI[]) cl.getMethod(
                 "getSeqsAsArray", new Class[]
                 {}).invoke(jmf));
         cl.getMethod("addAnnotations", new Class[]
-        { AlignmentI.class }).invoke(jmf, al);
+        { Alignment.class }).invoke(jmf, al);
         for (SequenceI sq : al.getSequences())
         {
           if (sq.getDatasetSequence() != null)