You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ru...@apache.org on 2007/08/07 05:44:55 UTC

svn commit: r563388 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/PropertyHelper.java

Author: ruwan
Date: Mon Aug  6 20:44:54 2007
New Revision: 563388

URL: http://svn.apache.org/viewvc?view=rev&rev=563388
Log:
Fixing the compiler version issue

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/PropertyHelper.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/PropertyHelper.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/PropertyHelper.java?view=diff&rev=563388&r1=563387&r2=563388
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/PropertyHelper.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/PropertyHelper.java Mon Aug  6 20:44:54 2007
@@ -64,12 +64,12 @@
                 String value = property.getAttributeValue(new QName("value"));
 
                 try {
-                    Method method = o.getClass().getMethod(mName, String.class);
+                    Method method = o.getClass().getMethod(mName, new Class[]{String.class});
                     if (log.isDebugEnabled()) {
                         log.debug("Setting property :: invoking method "
                                 + mName + "(" + value + ")");
                     }
-                    method.invoke(o, value);
+                    method.invoke(o, new Object[]{value});
 
                 } catch (Exception e) {
                     handleException("Error setting property : " + propertyName
@@ -83,12 +83,12 @@
                 if (value != null) {
 
                     try {
-                        Method method = o.getClass().getMethod(mName, OMElement.class);
+                        Method method = o.getClass().getMethod(mName, new Class[]{OMElement.class});
                         if (log.isDebugEnabled()) {
                             log.debug("Setting property :: invoking method "
                                     + mName + "(" + value + ")");
                         }
-                        method.invoke(o, value);
+                        method.invoke(o, new Object[]{value});
 
                     } catch (Exception e) {
                         handleException("Error setting property : " + propertyName
@@ -126,7 +126,7 @@
                 String expression = property.getAttributeValue(new QName("expression"));
 
                 try {
-                    Method method = o.getClass().getMethod(mName, String.class);
+                    Method method = o.getClass().getMethod(mName, new Class[]{String.class});
 
                     AXIOMXPath xp = new AXIOMXPath(expression);
                     OMElementUtils.addNameSpaces(xp, property, log);
@@ -137,7 +137,7 @@
                                 + mName + "(" + expression + ")");
                     }
 
-                    method.invoke(o, value);
+                    method.invoke(o, new Object[]{value});
 
                 } catch(NoSuchMethodException e) {
                     handleException("Unable to set the dynamic property value to the class. " +



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