diff options
author | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-20 21:34:57 +0000 |
---|---|---|
committer | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-20 21:34:57 +0000 |
commit | 5f133f5fbe22e2794aa726ed610325ab3e021213 (patch) | |
tree | c0eee026ad7210b86d68463adeeafa77dbcd0cbf /sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache | |
parent | 468c848e6fa977c72c9f614a3dbfe42fb0f24712 (diff) |
Fix IndexOutOfBoundsException from TUSCANY-3819 fix.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1061531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache')
-rw-r--r-- | sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java b/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java index 1dcd89ce2a..0b0a6cdee6 100644 --- a/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java +++ b/sca-java-2.x/trunk/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java @@ -298,13 +298,13 @@ public class JavaInterfaceImpl extends InterfaceImpl implements JavaInterface { */ private boolean isAsyncServerOperation( Operation operation ) { // Async form operations have: - // 1) void return type + // 1) void return type (equivalent to an output logical List of size '0') // 2) name ending in "Async" // 3) final parameter which is of ResponseDispatch<?> type - DataType<?> response = operation.getOutputType().getLogical().get(0); - if( response != null ) { - if ( response.getPhysical() != void.class ) return false; - } // end if + int size = operation.getOutputType().getLogical().size(); + if (size != 0) { + return false; + } if ( !operation.getName().endsWith("Async") ) return false; |