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

CharsetDecoder : decode() mentioning CoderMalfunctionError behavior not as per spec

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:

      Description

      The spec of https://download.java.net/java/early_access/jdk16/docs/api/java.base/java/nio/charset/CharsetDecoder.html#decode(java.nio.ByteBuffer,java.nio.CharBuffer,boolean)

      "CoderMalfunctionError - If an invocation of the decodeLoop method threw an unexpected exception"

      But the actual behavior is , CoderMalfunctionError is not thrown instead the exception thrown by the decodeLoop is just re thrown.

      This is something not as per spec : https://download.java.net/java/early_access/jdk16/docs/api/java.base/java/nio/charset/CoderMalfunctionError.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: