JDK-8022473 : Need Replacements For Deprecated UCharacterEnums Class
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2013-08-06
  • Updated: 2022-07-05
  • Resolved: 2022-07-05
Related Reports
Relates :  
Relates :  
Relates :  
Description
In the fix of JDK-7090158, it added @Deprecated tags into UCharacterEnums.java.

//      2011-09-06 Kurchi Subhra Hazra
37//          - Added @Deprecated tag to the following:
38//            - class UCharacterEnums
39//            - interfaces ECharacterCategory, ECharacterDirection
40//            - fields INITIAL_QUOTE_PUNCTUATION, FINAL_QUOTE_PUNCTUATION,
41//              DIRECTIONALITY_LEFT_TO_RIGHT, DIRECTIONALITY_RIGHT_TO_LEFT,
42//              DIRECTIONALITY_EUROPEAN_NUMBER, DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
43//              DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR, DIRECTIONALITY_ARABIC_NUMBER,
44//              DIRECTIONALITY_COMMON_NUMBER_SEPARATOR, DIRECTIONALITY_PARAGRAPH_SEPARATOR,
45//              DIRECTIONALITY_SEGMENT_SEPARATOR, DIRECTIONALITY_WHITESPACE,
46//              DIRECTIONALITY_OTHER_NEUTRALS, DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING,
47//              DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE, DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC,
48//              DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING, DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE,
49//              DIRECTIONALITY_POP_DIRECTIONAL_FORMAT, DIRECTIONALITY_NON_SPACING_MARK,
50//              DIRECTIONALITY_BOUNDARY_NEUTRAL, DIRECTIONALITY_UNDEFINED

But it triggers [deprecation] warnings in the compilation of UCharacterDirection.java. And no replacements to the deprecated elements are provided.
Comments
The code in question is ported from the 3rd party component ICU4J. So `@Deprecated` tag in the code has nothing to do with JDK's deprecation and no need for a replacement.
05-07-2022

Moving this to i18n; the classes were moved to jdk.internal.icu.lang in JDK-8174270. [~naoto] does this need to be fixed?
05-07-2022