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

(cs) Encoding U+FFFE, U+FFFF should throw UnmappableCharacterException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description

      The U+FFFF character should cause a java.nio.charset.MalformaledInputException to be thrown by the CharsetEncoder encode() method.
      But now it passes the encode, doesn't throw any exception.
      During API changes, now U+FFFE & U+FFFF return CoderResult.isUnmappable().

        Attachments

          Activity

            People

            Assignee:
            mr Mark Reinhold
            Reporter:
            yuxhuan Jeffrey Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: