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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • None
    • 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

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

              Created:
              Updated:
              Resolved: