Commit graph

9116 commits

Author SHA1 Message Date
Frank Tang
0127e4f760 ICU-22534 BRS75 Remove fixed logKnownIssue for CLDR-17024
CLDR-17024 is fixed in CLDR45 and the test now passed.
Remove the logKnownIssue so it will test and report future breakage.
2024-03-28 16:11:27 -07:00
Frank Tang
d83d26cc5d ICU-9972 Fix Chinese/Dangi Calendar getActualMaximum(UCAL_DAY_OF_YEAR)
Also fix ICU-12620 which is mark duplicate of ICU-9972 just now.
and fix ICU-22258.

Separate the new year and winter solstice cache since the calculated
value for these two calendar are mostly but not always the same due
to slightly different observation timeZone.

Remove the epochYear and zoneAstroCalc from the member data
and instead return them from a getStting() method with the two caches
since all four of them are constant per subclass of ChineseCalendar
and do not need to be different per object.

The known issues in the TestLimit is caused by both Calendar get/put the
value from the same cache while the calculated result depends on the
timeZone zoneAstroCalc.
2024-03-28 11:02:21 -07:00
Victor Chang
9e6173fcef ICU-22536 Fix ICUServiceThreadTest flakiness
Sometimes getVisibleIDs() method returns a null reference which might happend
because of inaccurate concurrent access. This change attempts to fix this
ICUServiceThreadTest flakiness.
2024-03-28 10:55:49 -07:00
Rich Gillam
d4bc9bef26 ICU-22611 Fixed failures in EnvTest. 2024-03-26 16:59:48 -07:00
yumaoka
57fc3094f9 ICU-22534 BRS75 J Serialization test data 2024-03-26 08:51:38 -04:00
yumaoka
6ad2ffb9db ICU-22534 BRS75 J API Signature file and API change report 2024-03-26 08:51:16 -04:00
yumaoka
4f75c62767 ICU-22534 BRS75 clean up import statements 2024-03-26 08:50:56 -04:00
Rahul Pandey
8ba19195f9 ICU-22534 Update version number to 75.1 2024-03-26 07:02:45 +05:30
Mihai Nita
141e820f71 ICU-22690 Update ICU4J MessageFormatter to the latest spec, LDML 45 2024-03-22 14:39:02 -07:00
Rich Gillam
13bf3c8313 ICU-22611 Fixed the RBNF MultiplierSubstitution to only perform floor() on the value being formatted when the
substitution is using a DecimalFormat and its owning rule also has a modulus substitution.  Took out a redundant
call to floor().  Added a hack to allow the caller to change the rounding behavior with setRoundingMode().
Added appropriate unit tests. Added additional documentation of the behavior to the API docs.
2024-03-22 11:18:27 -07:00
Frank Tang
0b77215040 ICU-22698 Clean up CalendarAstronomer 2024-03-20 13:36:17 -07:00
Markus Scherer
cce162bf4d ICU-11396 new properties Identifier_Status & Identifier_Type
See #2879
2024-03-20 13:20:14 -07:00
Frank Tang
7a3dfe877d ICU-22679 Remove getType and string comparsion
Change the logic of handling year in era 0 counting backwards
to depend on a boolean virtual function instead of adding
string comparsion code in the base class to have specific knowledge of
behavior of subclass.
2024-03-19 17:44:37 -07:00
DraganBesevic
4f2cefb7ca ICU-22534 Integrate CLDR 45 release beta1 2024-03-18 20:49:00 -07:00
Rich Gillam
281d8ef140 ICU-22152 Uncommented a bunch of commented-out test cases in ULocaleCollationTest.TestNameList() and made them pass again. 2024-03-18 17:01:14 -07:00
Younies Mahmoud
80b33416e8 ICU-22686 Fix Unit preferences calculation in Java
See #2899
2024-03-18 13:23:37 +01:00
Frank Tang
f709987818 ICU-22679 Refactor Islamic Calendar and Optmize starting condition of loop.
Refactor different rules into implementation of private interface Algorithm.
Since IslamicCalendar is public in Java (not in C++), we cannot put them into different subclass of Calendar and have to let them use the same class and object since the caller UNFORTUNALLY can call setCalculationType and setCivil to change the object to different rule. With this refactoring, we group the formula for the same rule into the same Algorithm
implementaiton and now we only do the if/switch check in the constructor or during the call of setCalculationType and setCivil only. The calculation operation is then just delegate the work to the assigned concrete Algorithm.

Improve the efficency while the month is very large. Apply the same optimization in PR 2853 which estimate starting point of year iteration based on an inverse calculation.

ICU-22679 change parameter name

ICU-22679 Use Consumer
2024-03-15 15:01:51 -07:00
Frank Tang
de9910659d ICU-22661 Limit the size of variants in Locale
See #2821
2024-03-14 16:23:51 -07:00
Rich Gillam
c771fc444f ICU-22523 Cut down the large tables in the APIs docs for SimpleDateFormat and included a link to the full table
in the LDML spec.
2024-03-14 14:32:29 -07:00
Rich Gillam
2b6ddc50fe ICU-22202 Fixed DateIntervalFormat to solve a couple "conflicting fields" errors. 2024-03-14 14:31:48 -07:00
DraganBesevic
fc18bcb05f ICU-22534 Integrate CLDR 45 release alpha 3, part 2, data files 2024-03-14 08:30:09 -07:00
DraganBesevic
0906aae169 ICU-22534 Integrate CLDR 45 release alpha 3, part 1, binary files 2024-03-14 08:30:09 -07:00
Frank Tang
9a912bb51b ICU-22633 Add more Calendar overflow tests
Test set+set, set+add, set+roll, add+add, roll+roll
Fix more int32_t overflow problems.

Optimize both Java and C++ Hebrew Calendar month/year advancement by first consider
every 235 months is 19 years before iteration.
2024-03-13 15:48:25 -07:00
Peter Edberg
ceee4f0b46 ICU-22655 Implement "special" conversion for speed-beaufort, part 2 icu4c 2024-03-09 19:52:42 -08:00
Craig
7bc202ae87 ICU-22534 BRS#27 scrub closed issues (frontload) 2024-03-05 11:15:28 -08:00
Shane F. Carr
71b9b88200 ICU-22319 Fix number range semanticallyEquivalent
See #2385
2024-03-04 08:23:00 -08:00
Craig
96fb7ae73a ICU-22534 ICU4J 75 frontload API change report 2024-02-29 08:49:43 -08:00
Peter Edberg
7d636aecf7 ICU-22655 Implement "special" conversion for speed-beaufort, part 1 icu4j 2024-02-28 12:57:33 -08:00
Craig
09ccfb9956 ICU-22534 ICU4J 75 frontload: API status update 2024-02-28 11:38:41 -08:00
DraganBesevic
a1925abf4f ICU-22534 CLDR 45 alpha2 integration to ICU 2024-02-28 08:28:08 -08:00
Markus Scherer
d1fa15bc1f ICU-22571 add Aran script code variant 2024-02-27 14:23:59 -08:00
Mihai Nita
201af462fc ICU-22675 Migrate from deprecated boxed primitive constructors to their replacements 2024-02-26 16:39:05 -08:00
Steven R. Loomis
ea1c6da07f ICU-22677 update LICENSE and README.md and pom.xml
- https://github.com/unicode-org/.github/issues/15
- use Unicode-3.0 in pom instead of raw license link
- https://github.com/unicode-org/.github/issues/15
2024-02-26 14:34:59 -06:00
Diego Gutierrez Yepiz
f3e50a7624 ICU-22582 Avoid synchronizing in RuleBasedBreakIterator and ULocale unless strictly necessary
See #2775
2024-02-21 09:38:41 -08:00
Peter Edberg
2c16b037cf ICU-22557 Add kxv_IN to build-icu-data.xml, update generate stubs 2024-02-09 09:40:52 -08:00
yumaoka
cd251ee62e ICU-22659 tzdata2024a updates in ICU repo 2024-02-08 15:00:39 -05:00
Peter Edberg
43ab3d1de8 ICU-22583 BRS 75rc CLDR 45-alpha0 to ICU main part 4 (fix to get new unitPrefixes data) 2024-02-06 18:07:44 -08:00
Peter Edberg
12cbf73e39 ICU-22583 BRS 75rc CLDR 45-alpha0 to ICU main part 3 (source and test code changes) 2024-02-06 18:07:44 -08:00
Peter Edberg
c7245a36df ICU-22583 BRS 75rc CLDR 45-alpha0 to ICU main part 2 (data generated or copied from CLDR) 2024-02-06 18:07:44 -08:00
Peter Edberg
b79ef68c32 ICU-22583 BRS 75rc CLDR 45-alpha0 to ICU main part 1 (binary data, binary-like source data) 2024-02-06 18:07:44 -08:00
Frank Tang
7c48842e23 ICU-22637 Accept non-ASCII digit to fix mistake 2024-01-22 14:00:12 -08:00
Frank Tang
9832f48e22 ICU-22636 Return U_BRK_RULE_SYNTAX when status number is too large
See #2793
2024-01-19 17:16:54 -08:00
Frank Tang
c8336085bb ICU-22637 Rewrite custom timezone parser
See #2792
2024-01-19 01:44:52 -08:00
Frank Tang
3eb8923b97 ICU-22638 Use parseNumber to fix buffer-overflow
See #2795
2024-01-19 01:43:35 -08:00
yumaoka
dc7014fda6 ICU-22620 tz2023d updates 2024-01-11 11:41:23 -05:00
Shane F. Carr
1a60a038e1 ICU-21952 Add withoutLocale functions to LocalizedNumber[Range]Formatter
See #2483
2023-12-28 22:04:02 -08:00
Mihai Nita
e76094c55a ICU-22605 Exclude the data files from the -sources.jar 2023-12-15 09:08:22 -08:00
Frank Tang
19af9e7ce3 ICU-22602 Fix stack overflow inside flattenVariables
Limit the recursive call of flattenVariables to maximum depth 3500
since Java on my machine throw stack overflow exception around 3900.
2023-12-14 15:14:21 -08:00
Frank Tang
4a7d61d261 ICU-22579 Fix Null deref while Unicode Set only has string 2023-12-12 14:39:12 -08:00
Frank Tang
8b14c05791 ICU-22585 Fix infinity loop while unicode set contains single surrogate 2023-12-11 15:33:12 -08:00