diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-18 21:15:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-18 21:15:01 +0000 |
commit | e3fda1e8e34d375596a8c67ade5079fea2d05da5 (patch) | |
tree | a8a8e99e80368bdc8be6c0c131368f469a24c374 /sca-java-2.x/trunk/modules | |
parent | a8f36d58ded415de42f604c772eaee51508e19f7 (diff) |
Do better printout for array response types
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1036634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java index 16fc6122b8..33859f3abb 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java @@ -204,8 +204,11 @@ public class Shell { }
Object proxy = ((RuntimeComponent)endpoints.get(0).getComponent()).getServiceReference(null, serviceName).getService();
Object result = invoke(proxy, operationName, params);
-
- out.println(result);
+ if (result != null && result.getClass().isArray()) {
+ out.println(Arrays.toString((Object[])result));
+ } else {
+ out.println(result);
+ }
return true;
}
|