You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/03/26 16:13:33 UTC
svn commit: r641347 -
/servicemix/smx3/trunk/deployables/serviceengines/servicemix-bean/src/main/java/org/apache/servicemix/bean/support/BeanInfo.java
Author: gnodet
Date: Wed Mar 26 08:13:30 2008
New Revision: 641347
URL: http://svn.apache.org/viewvc?rev=641347&view=rev
Log:
Fix compilation problem
Modified:
servicemix/smx3/trunk/deployables/serviceengines/servicemix-bean/src/main/java/org/apache/servicemix/bean/support/BeanInfo.java
Modified: servicemix/smx3/trunk/deployables/serviceengines/servicemix-bean/src/main/java/org/apache/servicemix/bean/support/BeanInfo.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/deployables/serviceengines/servicemix-bean/src/main/java/org/apache/servicemix/bean/support/BeanInfo.java?rev=641347&r1=641346&r2=641347&view=diff
==============================================================================
--- servicemix/smx3/trunk/deployables/serviceengines/servicemix-bean/src/main/java/org/apache/servicemix/bean/support/BeanInfo.java (original)
+++ servicemix/smx3/trunk/deployables/serviceengines/servicemix-bean/src/main/java/org/apache/servicemix/bean/support/BeanInfo.java Wed Mar 26 08:13:30 2008
@@ -34,6 +34,7 @@
import org.apache.servicemix.bean.Operation;
import org.apache.servicemix.bean.Property;
import org.apache.servicemix.bean.XPath;
+import org.apache.servicemix.client.DefaultNamespaceContext;
import org.apache.servicemix.components.util.MessageHelper;
import org.apache.servicemix.expression.Expression;
import org.apache.servicemix.expression.JAXPStringXPathExpression;
@@ -175,9 +176,9 @@
} else if (annotation instanceof XPath) {
XPath xpathAnnotation = (XPath) annotation;
JAXPStringXPathExpression expr = new JAXPStringXPathExpression(xpathAnnotation.xpath());
- if (!annotation.prefix().equals("") && !annotation.uri().equals("")) {
+ if (!xpathAnnotation.prefix().equals("") && !xpathAnnotation.uri().equals("")) {
DefaultNamespaceContext ctx = new DefaultNamespaceContext();
- ctx.add(annotation.prefix(), annotation.uri());
+ ctx.add(xpathAnnotation.prefix(), xpathAnnotation.uri());
expr.setNamespaceContext(ctx);
}
return expr;