Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-170

java.nio.charset.CharsetEncoder.encode method does not handle the unexpected exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None

    Description

      public final CoderResult encode(CharBuffer in, ByteBuffer out, boolean endOfInput)
      As spec says, the method throws CoderMalfunctionError if an invocation of the decodeLoop method threw an unexpected exception.

      However, Harmony doesn't throws CoderMalfunctionError when decodeLoop method threw an unexpected exception.

      The attached test cases pass on RI , but fail on Harmony.

      Attachments

        1. CharsetEncoderTest_patch.txt
          2 kB
          Richard Liang
        2. CharsetEncoder_patch.txt
          1 kB
          Richard Liang

        Activity

          People

            tellison Tim Ellison
            richard_liang Richard Liang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: