java.net.URLDecoder doesn't follow spec.

Mark Wielaard mark@klomp.org
Sun Jan 14 13:45:00 GMT 2001


Hi,
On Sun, Jan 14, 2001 at 11:11:05AM -0500, Edgar Villanueva wrote:
> I was compiling some existing code and found a problem with
> java.net.URLDecoder.decode
>> According to the sun jdk1.3 javadocs java.net.URLDecoder.decode should
> not throw an Exception.
>> The libjava version does.
>> I think decode needs to catch any exception and throw some runtime
> exceptions accordingly.

Yes you are right.
The following diff removes the Exception and merges URLDecoder with the
comments of the Classpath version (the code was already the same).
Thanks,
Mark


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /