You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by "Adam R. B. Jack" <aj...@trysybase.com> on 2004/03/06 01:11:11 UTC

[ws-xmlrpc|codec] ws-xmlrpc fails on Gump when compiling against codec ...

ws-xmlrpc recently started failing to be Gumped against codec, see:

http://lsd.student.utwente.nl/gump/ws-xmlrpc/ws-xmlrpc.html

inside the build:

http://lsd.student.utwente.nl/gump/ws-xmlrpc/gump_work/build_ws-xmlrpc_ws-xmlrpc.html

stating:

[javac]
/data3/gump/ws-xmlrpc/src/java/org/apache/xmlrpc/DefaultTypeFactory.java:133
: exception org.apache.commons.codec.DecoderException is never thrown in
body of corresponding try statement
    [javac]         catch (DecoderException e) {
    [javac]         ^

This confused me, because looking in CVS the createBase64() method in:

http://cvs.apache.org/viewcvs.cgi/ws-xmlrpc/src/java/org/apache/xmlrpc/DefaultTypeFactory.java

has

     try {
            return base64Codec.decode(cdata.getBytes());
        }
        catch (DecoderException e) {
            //TODO: consider throwing an exception here?
            return new byte[0];
        }

But the decode() method in this class does state it could throw:

    org.apache.commons.codec.DecoderException

see:

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/codec/src/java/org/apache/commons/codec/binary/Base64.java

Does anybody see anything I'm missing?

regards

Adam
--
Experience the Unwired Enterprise:
http://www.sybase.com/unwiredenterprise
Try Sybase: http://www.try.sybase.com


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org