icu4j-data-install target on icu4c/source/testdata modifies DebugUtilitiesData

Description

I was following the step 12b in the cldr-icu-readme. Running make icu4j-data-install from within icu4c/source/testdata modifies icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/DebugUtilitiesData.java, in particular uncomments the following line:

//com.ibm.icu.util.Calendar.ORDINAL_MONTH, /* 23 */

This does not compile:

@compile:
[echo] build-local: ../../shared/../../build-local.properties
[echo] --- java compiler arguments ------------------------
[echo] source dir: /workplace/abhijee/CLDRUpdate/icu/icu4j/main/tests/core/src
[echo] output dir: /workplace/abhijee/CLDRUpdate/icu/icu4j/main/tests/core/out/bin
[echo] classpath: /workplace/abhijee/CLDRUpdate/icu/icu4j/lib/junit-4.12.jar:/workplace/abhijee/CLDRUpdate/icu/icu4j/lib/hamcrest-core-1.3.jar:/workplace/abhijee/CLDRUpdate/icu/icu4j/lib/JUnitParams-1.0.5.jar:/workplace/abhijee/CLDRUpdate/icu/icu4j/main/classes/core/out/lib/icu4j-core.jar:/workplace/abhijee/CLDRUpdate/icu/icu4j/main/tests/framework/out/lib/icu4j-test-framework.jar:/workplace/abhijee/CLDRUpdate/icu/icu4j/tools/misc/out/lib/icu4j-tools.jar
[echo] source: 1.8
[echo] target: 1.8
[echo] debug: on
[echo] encoding: UTF-8
[echo] compiler arg: -Xlint:none
[echo] ----------------------------------------------------
[mkdir] Created dir: /workplace/abhijee/CLDRUpdate/icu/icu4j/main/tests/core/out/bin
[javac] Compiling 273 source files to /workplace/abhijee/CLDRUpdate/icu/icu4j/main/tests/core/out/bin
[javac] /workplace/abhijee/CLDRUpdate/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/DebugUtilitiesData.java:146: error: cannot find symbol
[javac] com.ibm.icu.util.Calendar.ORDINAL_MONTH, /* 23 */
[javac] ^
[javac] symbol: variable ORDINAL_MONTH
[javac] location: class Calendar
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

It looks like the line was commented out in icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/DebugUtilitiesData.java, but the file generated from icu4j-data-install target in icu4c/source/testdata has this line uncommented.

Activity

Show:

Frank Yung-Fong Tang 
June 2, 2023 at 12:32 AM

The main reason of this bug is due to the fact that we add methods to implement Temporal Calendar API in C++ but not yet add a corresponding API to ICU4J.
https://unicode-org.atlassian.net/browse/ICU-22027

Fixed

Details

Assignee

Reporter

Components

Labels

Priority

Time Needed

Days

Fix versions

Created May 16, 2023 at 5:38 AM
Updated June 5, 2023 at 10:27 PM
Resolved June 5, 2023 at 10:27 PM