axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: grumble about QName(null,*)
Date Thu, 26 Feb 2004 20:34:37 GMT
Paul,

Your grumbled are heard and understood. :-)

My reading of the JavaDocs and your message is that Axis needs to make no
changes to our use or implementation of QName.

Is that correct?

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Paul R Brown [mailto:prb@fivesight.com] 
Sent: Monday, February 16, 2004 12:07 PM
To: axis-dev@ws.apache.org
Subject: Re: grumble about QName(null,*)


> It so happens that the implementation of javax.xml.namespace.QName 
> sets the URI to "" when this happens, but it's still a Bad Thing to 
> do, since URIs are never null (but may be "").  QName is broken for 
> allowing a null argument to be passed, and that's goofy since it 
> throws an exception if a null prefix is passed.

According to

http://java.sun.com/j2ee/1.4/docs/api/javax/xml/namespace/QName.html

this is the official (and thus, in a twisted sense, correct) behavior, 
except that a null prefix should also be permitted.

	-- Paul

Mime
View raw message