[MOBY-guts] biomoby commit

Paul Gordon gordonp at pub.open-bio.org
Thu Feb 3 22:37:31 UTC 2005


gordonp
Thu Feb  3 17:37:30 EST 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory pub.open-bio.org:/tmp/cvs-serv26992

Modified Files:
	MobyRequest.java 
Log Message:
Updated response Vector creation to fix spurious Java array run-time type safety check issues

moby-live/Java/src/main/org/biomoby/client MobyRequest.java,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java	2004/09/03 20:28:16	1.5
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java	2005/02/03 22:37:30	1.6
@@ -206,6 +206,8 @@
     }
 
     /**
+     * @return a vector of MobyDataInstance[], each element of the vector is the collection of response objects for the correspondingly indexed input request.
+     *
      * @throws MobyException if you try to get the results before calling InvokeService
      */
     public Vector getOutput() throws MobyException{
@@ -679,7 +681,8 @@
 
 	    // What we're building is a Vector, where each element represents
 	    // a Response's DataInstance Output (i.e. Simple and Collection return values)
-	    responsesOutput.add(out.toArray());
+            MobyDataInstance[] mdis = new MobyDataInstance[out.size()];
+	    responsesOutput.add(out.toArray(mdis));
 
 	    releaseXPath(response);
 	}




More information about the MOBY-guts mailing list