JDK-7133488 : (cs) java/nio/charset/Charset/NIOCharsetAvailabilityTest.java fails on MacOSX
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7u4
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-01-26
  • Updated: 2012-08-21
  • Resolved: 2012-03-28
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.
JDK 7
7u4 b13Fixed
Description
From http://java.net/jira/browse/MACOSX_PORT-224 --

Charset.availableCharsets() does not contain sun.nio.cs.ext.COMPOUND_TEXT

Build: b201
Keywords: test-fail-macos
Tests failed (Regression):
java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
Another related failure: sun/nio/cs/TestCompoundTest.java

Comments
EVALUATION As Sherman pointed out, we only include COMPOUND_TEXT on X11 platforms: if ("SunOS".equals(osName) || "Linux".equals(osName)) { charset("x-COMPOUND_TEXT", "COMPOUND_TEXT", new String[] { "COMPOUND_TEXT", // JDK historical "x11-compound_text", "x-compound-text" }); } so we either include this charset on the Mac or else adjust the tests.
2012-02-05