From a394f0df3650d5b1e0b76e0319b650fe8ac98e41 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 8 Jun 2015 15:05:35 +0100 Subject: [PATCH] JAl-1421 fix method reflection argument (properly this time) --- src/MCview/PDBfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MCview/PDBfile.java b/src/MCview/PDBfile.java index d81e734..4039cdd 100755 --- a/src/MCview/PDBfile.java +++ b/src/MCview/PDBfile.java @@ -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) -- 1.7.10.2