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

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

    XMLWordPrintable

Details

    • beta3
    • sparc
    • solaris_8
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: