You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2007/06/14 01:34:13 UTC
svn commit: r547064 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Author: hemapani
Date: Wed Jun 13 16:34:12 2007
New Revision: 547064
URL: http://svn.apache.org/viewvc?view=rev&rev=547064
Log:
fix https://issues.apache.org/jira/browse/AXIS2-1871
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?view=diff&rev=547064&r1=547063&r2=547064
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Wed Jun 13 16:34:12 2007
@@ -45,6 +45,7 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
@@ -282,8 +283,11 @@
// other looks.
implInfoParam = axisService.getParameter(Constants.SERVICE_OBJECT_SUPPLIER);
if (implInfoParam != null) {
- Class serviceObjectMaker = Loader.loadClass(serviceClassLoader, ((String)
- implInfoParam.getValue()).trim());
+ String className = ((String)implInfoParam.getValue()).trim();
+ Class serviceObjectMaker = Loader.loadClass(serviceClassLoader, className);
+ if(serviceObjectMaker.getModifiers() != Modifier.PUBLIC){
+ throw new AxisFault("Service class "+ className + " must have public as access Modifier");
+ }
// Find static getServiceObject() method, call it if there
Method method = serviceObjectMaker.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org