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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: