commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam R. B. Jack" <aj...@trysybase.com>
Subject [ws-xmlrpc|codec] ws-xmlrpc fails on Gump when compiling against codec ...
Date Sat, 06 Mar 2004 00:11:11 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message