JDK-2188899 : unexpected exception occurs in InputStreamReader for UTF-16, little endian, and Byte-order-mark
  • Type: Backport
  • Backport of: JDK-6292322
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2010-02-23
  • Updated: 2014-02-27
  • Resolved: 2011-10-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_12Fixed
Comments
EVALUATION Following changes: 1. File : /src/share/classes/sun/nio/cs/standard-charsets (this generated StandardCharsets.java) Added code: charset UTF-16 UTF_16 alias UTF_16 # JDK historical alias utf16 + alias unicode + alias UnicodeBig + charset x-UTF-16LE-BOM UTF_16LE_BOM + alias UnicodeLittle 2. src/share/classes/sun/nio/cs/UTF_16LE_BOM.java (these lines need to be changed in compare to 1.4.2 file: http://jpsesvr.sfbay.sun.com:8080/ctetools/CodeStore/1678/webrev/src/share/classes/sun/nio/cs/UTF_16LE_BOM.java.html ) public UTF_16LE_BOM() { ! super("x-UTF-16LE-BOM", StandardCharsets.aliases_UTF_16LE_BOM); } Because aliasesFor method has been represented by this style in 1.5. 3. Not required to change this: src/share/classes/sun/io/CharacterEncoding.java. aliasTable.put("UTF_16LE_BOM", "UnicodeLittle"); aliasTable.put("x-UTF-16LE-BOM", "UnicodeLittle");
08-06-2011

EVALUATION Please see the 1.4.2 CR. This source file: src/share/classes/sun/nio/cs/StandardCharsets.java is not in 1.5. StandardCharsets.java file is getting auto-generated in 1.5. Rest of the changes are same.
07-06-2011