dev@jax-ws.java.net

Re: CVS update [rearch-2005]: /jax-ws-sources/jaxws-ri/rt/src/com/sun/xml/ws/api/message/

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Sat, 04 Mar 2006 10:36:11 -0800

jitu_at_dev.java.net wrote:
> * worked out. This method is here just to show the concept of
> * {_at_link Messages}.
> */
> - public static Message create(Throwable t) {
> - // TODO: implement this method later
> - throw new UnsupportedOperationException();
> + public static Message create(Throwable t, SOAPVersion soapVersion) {
> + return SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, t);
> }

Can the 2nd parameter be null? It doesn't look like so to me.

In any case javadoc of SOAPFaultBuilder should use @Nullable and
@NotNull to indicate what can be null.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com