You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/03/11 01:37:57 UTC

svn commit: r516816 - in /incubator/tuscany/java/sca/kernel/core/src: main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java test/java/org/apache/tuscany/core/implementation/java/JavaTargetInvokerMediationTestCase.java

Author: jboynes
Date: Sat Mar 10 16:37:56 2007
New Revision: 516816

URL: http://svn.apache.org/viewvc?view=rev&rev=516816
Log:
this testcase is invalid as mapping of operations should have been done by an interceptor before getting to the target invoker

Removed:
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/implementation/java/JavaTargetInvokerMediationTestCase.java
Modified:
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java?view=diff&rev=516816&r1=516815&r2=516816
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java Sat Mar 10 16:37:56 2007
@@ -61,14 +61,6 @@
     public Object invokeTarget(final Object payload, final short sequence) throws InvocationTargetException {
         try {
             Object instance = getInstance(sequence);
-            if (!operation.getDeclaringClass().isInstance(instance)) {
-                Set<Method> methods = getAllUniquePublicProtectedMethods(instance.getClass());
-                Method newOperation = findClosestMatchingMethod(operation.getName(),
-                    operation.getParameterTypes(), methods);
-                if (newOperation != null) {
-                    operation = newOperation;
-                }
-            }
             Object ret;
             if (payload != null && !payload.getClass().isArray()) {
                 ret = operation.invoke(instance, payload);



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org