RFR: JDK-8007799 Base64.getEncoder(0, byte[]) returns encoder that unexpectedly inserts line separator when using some of the encoding methods
Mark Sheppard
mark.sheppard at oracle.com
Fri Apr 26 13:55:45 UTC 2013
Hi,
please oblige with a review of the fix for the issue JDK-8007799 as
shown in the webrev
below:
http://cr.openjdk.java.net/~msheppar/8007799/webrev.01/
This fix takes into account the feedback from the initial review and
condenses the solution to a check on the line length in the getEncoder()
method,
which will return an RFC4648 base64 encoder when the line length <=0.
The RFC4648 base64 encoder provides the required semantics specified
in the API.
regards
Mark
More information about the core-libs-dev
mailing list