Fix problem with wrong casting Alignment -> JpredAlignment
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 13 Sep 2013 15:43:32 +0000 (16:43 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Fri, 13 Sep 2013 15:43:32 +0000 (16:43 +0100)
datamodel/compbio/data/sequence/JpredAlignment.java
webservices/compbio/ws/client/Jws2Client.java

index 768ac9e..d7d8c5d 100644 (file)
@@ -43,7 +43,7 @@ import compbio.data.sequence.Alignment;
  * \r
  */\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
-public final class JpredAlignment extends Alignment{\r
+public class JpredAlignment extends Alignment{\r
 \r
        private JpredAlignment() {\r
                // This has to has a default constructor for JaxB\r
index eac049e..2a2f3d1 100644 (file)
@@ -176,7 +176,7 @@ public class Jws2Client {
                                Alignment alignment = align(infile, (MsaWS<T>) thews, preset, customOptions);\r
                                if (serviceName.equalsIgnoreCase("JpredWS")) {\r
                                        writer.close();\r
-                                       JpredAlignment jpred = new JpredAlignment(alignment.getSequences(), alignment.getMetadata());\r
+                                       JpredAlignment jpred = (JpredAlignment)alignment;\r
                                        if (outfile != null) {\r
                                                FileOutputStream fout = new FileOutputStream(outfile);\r
                                                SequenceUtil.writeFastaKeepTheStream(fout, jpred.getJpredSequences(), 60);\r