Hello,
I saw your message on commons-dev and made a mental note to look into it, since I incorporated Base64 from commons-codec about a year ago. Quick answer: hey cool, no more meaningless exception to catch!
Codec is only used currently in HEAD, and we haven't even released an alpha of 2.0 yet. I dug in a bit, and the DecoderException was thrown from Base64.decode(byte[]) until version 1.12 (Last November). This was before codec released 1.2. My solution will probably be to bump our dependency to 1.2 and remove the catch.
Once I stop procrastinating and fax my CLA I will probably JFDI. :)
-- Ryan Hoegg ISIS Networks http://www.isisnetworks.net/
Adam R. B. Jack wrote:
Folks,
I posted this to the commons-dev [codec] list yesterday, but figured you might have views yourself (as a user of codec). I don't (personally) know the release history of codec, or if you'd mind not being able to compile your CVS HEAD code against older releases (assume any existed where it threw this exception), but one quick fix would be to compile out the try/catch.
Clearly this is to your discretion, and depends upon what codec has released, and what they plan on releasing. If I get an answer on commons-dev I'll post it here.
regards,
Adam