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

Square character support for the Japanese new era

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P3
    • 12
    • core-libs
    • None
    • behavioral
    • minimal
    • Java API
    • SE

    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.

      Attachments

        Issue Links

          Activity

            People

              naoto Naoto Sato
              naoto Naoto Sato
              Rachna Goel (Inactive), Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: