Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8006530

Base64.getMimeDecoder().decode() throws exception for non-base64 character after padding =

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b77
    • Verification:
      Verified

      Description

      (1) j.u.Base64.getMimeDecoder().decode() throws exception for non-base64 character after padding =. For example "AA==\n"
      (2) j.u.Base64.getMimeDecoder().encoder() does not add line ending at the end of the result, this should be documented explicitly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                sherman Xueming Shen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: