JDK-8211739 : Square character support for the Japanese new era
  • Type: CSR
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 12
  • Submitted: 2018-10-04
  • Updated: 2018-10-29
  • Resolved: 2018-10-09
Related Reports
CSR :  
Relates :  
Relates :  
Description
Summary
-------

Support for the square character for the Japanese new era

Problem
-------

A new code point (U+32FF) will be assigned for the upcoming Japanese new era [1]. Currently the code point is unassigned, thus various static methods in java.lang.Character class returns values for an invalid code point.

[1] http://blog.unicode.org/2018/09/new-japanese-era.html

Solution
--------

Modify the character properties for that particular code point so that it would be regarded as a Japanese square era name, similar to the one that represents Meizi (U+337E). Specifically,

    Character.isDefined(0x32FF) returns 'true'.
    Character.getType(0x32FF) returns Character.OTHER_SYMBOL
    Character.getName(0x32FF) returns "SQUARE ERA NAME NEWERA"
    Character.getDirectionality(0x32FF) returns Character.DIRECTIONALITY_LEFT_TO_RIGHT
    Character.UnicodeScript(0x32FF) returns Character.UnicodeScript.COMMON

This change will not include any composition/decomposition changes. It will be included in the upcoming ICU4J changes in their version 63.

Specification
-------------

This is a behavioral change, so no spec change is anticipated.


Comments
Created a release note issue.
09-10-2018

Moving to Approved. Please consider adding a release note for this change given the expected interest to Japanese users.
09-10-2018