United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7133488 (cs) java/nio/charset/Charset/NIOCharsetAvailabilityTest.java fails on MacOSX
JDK-7133488 : (cs) java/nio/charset/Charset/NIOCharsetAvailabilityTest.java fails on MacOSX

Details
Type:
Bug
Submit Date:
2012-01-26
Status:
Closed
Updated Date:
2012-08-21
Project Name:
JDK
Resolved Date:
2012-03-28
Component:
core-libs
OS:
os_x
Sub-Component:
java.nio
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4 (b13)

Related Reports

Sub Tasks

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



Hardware and Software, Engineered to Work Together