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 to...@apache.org on 2004/11/09 20:20:27 UTC
cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java
tomj 2004/11/09 11:20:26
Modified: java/src/org/apache/axis/wsdl/toJava Emitter.java
Log:
Add a bit of defensive code to avoid class names with periods in front of
them when a there is an empty (not null) namespace in a QName.
Revision Changes Path
1.73 +1 -1 ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
Index: Emitter.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- Emitter.java 29 Oct 2004 20:25:25 -0000 1.72
+++ Emitter.java 9 Nov 2004 19:20:26 -0000 1.73
@@ -533,7 +533,7 @@
// Use the namespace uri to get the appropriate package
String pkg = getPackage(qName.getNamespaceURI());
- if (pkg != null) {
+ if (pkg != null && pkg.length() > 0) {
fullJavaName = pkg + "."
+ Utils.xmlNameToJavaClass(qName.getLocalPart());
} else {