Author: veithen
Date: Sat Feb 5 13:36:05 2011
New Revision: 1067439
URL: http://svn.apache.org/viewvc?rev=1067439&view=rev
Log:
Reverted r1067421 because this change is causing a build failure.
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java?rev=1067439&r1=1067438&r2=1067439&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
(original)
+++
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
Sat Feb 5 13:36:05 2011
@@ -156,18 +156,10 @@ public class TypeTable {
public QName getSimpleSchemaTypeName(String typeName) {
QName qName = (QName) simpleTypetoxsd.get(typeName);
if(qName == null){
- Class typeClass = null;
- try {
- typeClass = Class.forName(typeName);
- } catch (ClassNotFoundException e) {
- // we need to do this change only with the proper classes.
this my gives
- // the exceptions but that should be ok.
- }
- if ((typeName.startsWith("java.lang") ||
typeName.startsWith("javax.")) &&
- !Exception.class.isAssignableFrom(typeClass)) {
+
if((typeName.startsWith("java.lang")||typeName.startsWith("javax.")) &&
+ !Exception.class.getName().equals(typeName)){
return ANY_TYPE;
}
-
}
return qName;
}