axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r806548 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ClassFinderImpl.java
Date Fri, 21 Aug 2009 13:42:10 GMT
Author: dims
Date: Fri Aug 21 13:42:10 2009
New Revision: 806548

URL: http://svn.apache.org/viewvc?rev=806548&view=rev
Log:
Avoid picking up unnecessary JAX-B packages

Example: org.apache.xyz and org.apache.xyz123 (note that the 2nd package has 3 more characters
than the first one)


Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ClassFinderImpl.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ClassFinderImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ClassFinderImpl.java?rev=806548&r1=806547&r2=806548&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ClassFinderImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ClassFinderImpl.java
Fri Aug 21 13:42:10 2009
@@ -72,7 +72,7 @@
                                     clazzName = clazzName.replace('/', '.').replace('\\',
'.')
                                             .replace(':', '.');
                                     //We are only going to add the class that belong to the
provided package.
-                                    if (clazzName.startsWith(pkg)) {
+                                    if (clazzName.startsWith(pkg + ".")) {
                                         try {
                                             Class clazz = forName(clazzName, false, cl);
                                             // Don't add any interfaces or JAXWS specific
classes.



Mime
View raw message