From: Shane B. <Sha...@sy...> - 2006-05-09 22:28:06
|
User: sbryzak2 Date: 06/05/09 18:28:02 Modified: src/main/org/jboss/seam/remoting Call.java Log: Fixed remoting bug - only use local interface if one exists Revision Changes Path 1.6 +10 -3 jboss-seam/src/main/org/jboss/seam/remoting/Call.java (In the diff below, changes in quantity of whitespace are not shown.) Index: Call.java =================================================================== RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/remoting/Call.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- Call.java 24 Apr 2006 03:07:24 -0000 1.5 +++ Call.java 9 May 2006 22:28:02 -0000 1.6 @@ -12,6 +12,7 @@ import org.jboss.seam.remoting.wrapper.ConversionException; import org.jboss.seam.remoting.wrapper.ConversionScore; import org.jboss.seam.remoting.wrapper.Wrapper; +import org.jboss.seam.ComponentType; /** * @@ -100,9 +101,15 @@ // Create an instance of the component Object instance = Component.getInstance(componentName, true); + Class type = null; + + if (component.getLocalInterfaces().size() > 0) + { // Get the local interface for the component - this is the type that we're // going to assume we're invoking against. - Class type = component.getLocalInterfaces().iterator().next(); + type = component.getLocalInterfaces().iterator().next(); + } + if (type == null) type = component.getBeanClass(); |