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

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

XMLWordPrintable

    • beta3
    • sparc
    • solaris_8
    • Verified

      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().

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: