tomj 02/04/12 07:17:49
Modified: java/src/org/apache/axis/wsdl WSDL2Java.java
Log:
Ignore malformed URLs when checking for username/password
in the WSDL URI.
Revision Changes Path
1.23 +8 -2 xml-axis/java/src/org/apache/axis/wsdl/WSDL2Java.java
Index: WSDL2Java.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/WSDL2Java.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- WSDL2Java.java 11 Apr 2002 15:45:09 -0000 1.22
+++ WSDL2Java.java 12 Apr 2002 14:17:49 -0000 1.23
@@ -791,8 +791,14 @@
System.exit(1);
}
- private void checkForAuthInfo(String uri) throws MalformedURLException {
- URL url = new URL(uri);
+ private void checkForAuthInfo(String uri) {
+ URL url = null;
+ try {
+ url = new URL(uri);
+ } catch (MalformedURLException e) {
+ // not going to have userInfo
+ return;
+ }
String userInfo = url.getUserInfo();
if (userInfo != null) {
int i = userInfo.indexOf(':');