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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 16
    • core-libs

    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

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

              Dates

                Created:
                Updated:
                Resolved: