hg: jdk8/tl/jdk: 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream; ...

xueming.shen at oracle.com xueming.shen at oracle.com
Mon Feb 4 20:00:02 UTC 2013


Changeset: e202f43a8b8a
Author:    sherman
Date:      2013-02-04 11:58 -0800
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e202f43a8b8a

8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream
8006315: Base64.Decoder decoding methods are not consistent in treating non-padded data
8006530: Base64.getMimeDecoder().decode() throws exception for non-base64 character after adding =
Summary: updated the spec to describe the expected behave explicitly and the implementation to follow
Reviewed-by: alanb, chegar, lancea

! src/share/classes/java/util/Base64.java
! test/java/util/Base64/TestBase64.java




More information about the core-libs-dev mailing list