Codereview request for 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream (original) (raw)
Xueming Shen xueming.shen at oracle.com
Thu Jan 31 22:15:10 UTC 2013
- Previous message: hg: jdk8/tl/jdk: 8006709: Add minimal support of MacOSX platform for NetBeans Projects
- Next message: Codereview request for 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Obviously ioe is not an appropriate exception for invalid base64 bytes, and it's inconsistent with the rest of decode methods, as the submitter suggested. The change is to explicitly specify (as other decoding methods do) that IAE will be thrown if the input stream contains invalid base64 bytes. The impl is also updated according.
Please help review.
http://cr.openjdk.java.net/~sherman/8006295/webrev/
Thanks -Sherman
- Previous message: hg: jdk8/tl/jdk: 8006709: Add minimal support of MacOSX platform for NetBeans Projects
- Next message: Codereview request for 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]