summaryrefslogtreecommitdiff
path: root/icu4j
AgeCommit message (Collapse)Author
2016-03-01Cherry-pick: ticket:12005: Fix numerous warnings / errors from Javadoc ↵Scott Russell
generation http://bugs.icu-project.org/trac/changeset/38385 Bug: 22023363 (cherry picked from bee65486a185907111f3be60992433e133ec0e32) Change-Id: I9e32f4d800cf8997e820764ce920d119049b9506
2016-03-01Cherry-pick: ticket:12003: Use more links to actual Java classes in ICU API doc.Yoshito Umaoka
http://bugs.icu-project.org/trac/changeset/38348 Bug: 22023363 (cherry picked from 03f16b04d95bbaa98f702b69791b0de29ac75915) Change-Id: I25e9d414ce4669ec031b1c986558e29dcb4646f5
2016-03-01Android patch: Ticket #11913: Fix bug in temporary workaround.Fredrik Roubert
https://android.googlesource.com/platform/external/icu/+/90d4668 This temporary workaround was added in order to address the problem tested by the org.apache.harmony.tests.java.text.DecimalFormatTest test_formatToCharacterIterator_veryLarge test case. But it broke the com.ibm.icu.dev.test.format.NumberFormatTest TestDataDrivenICU test case, which this follow-up patch fixes. Bug: 27310195 (cherry picked from 65f93a4dc9f38c7ab0da01c680213f679262c986) Change-Id: I707f65f9d2a1068bebd1ca3ed3f7d1441f412c51
2016-03-01Android patch: CLDR ticket #7969: Percent formatting in RTL text. ICU4JFredrik Roubert
This is a temporary workaround until the issue has been fixed upstream: http://unicode.org/cldr/trac/ticket/7969 This code change is required after this data change: https://android.googlesource.com/platform/external/icu/+/f785ae8 Bug: 15476051 Bug: 27310195 (cherry picked from 31e8952cd0bf827dcd5b7c641920a382b8a346aa) Change-Id: I0612f68424f2772aecdd3fbf53b0e48801ea636d
2016-03-01Android patch: Regenerated data files for en_AU cherry-pick.Paul Duffin
Generated like this: cd $AOSP/external/icu $AOSP/external/icu/icu4c/source/runConfigureICU Linux make INCLUDE_UNI_CORE_DATA=1 cp data/out/tmp/icudt56l.dat $AOSP/external/icu/icu4c/source/stubdata make ICU4J_ROOT=$AOSP/external/icu/icu4j icu4j-data-install Bug: 27113353 (cherry picked from 374ed26ec46bbcb23d2c582fde38271d203f4423) Change-Id: I53e7ed752d5d3b4e2b894e54d76cb21e2aad9d3a
2016-02-29Enable tests to be run when ICU4J is on the bootclasspathPaul Duffin
Applies the patch attached to http://bugs.icu-project.org/trac/ticket/12227 which supplies the ClassLoader for a test class to the code that retrieves the data rather than relying on its default behaviour which is to use the ClassLoader for one of the main library classes which is in the bootclassloader. Also repackages the code to make sure that the changes are reflected in the repackaged tests that are run by CTS. This is needed to run the tests on the repackage code embedded within Android. Bug: 22023363 Change-Id: I7f1c8a741e8bd271b0f355d7985a72dc63e8c3a5
2016-02-29Add repackaged version of the ICU testsPaul Duffin
Adds a new android-icu4j-tests target to build the repackaged tests. The repackages tests were generated by running the following script which was modified to repackage the tests in addition to the source and sample. tools/srcgen/generate_android_icu4j.sh Bug: 22023363 (cherry picked from aefe4d1f8f1773ead1a52f7a5d2c9e0009353600) Change-Id: I083baac898c587e4a6787e408b22f811010167eb
2016-02-25Update timezone data to 2016aNeil Fuller
Changes affecting future time stamps America/Cayman will not observe daylight saving this year after all. Revert our guess that it would. (Thanks to Matt Johnson.) Asia/Chita switches from +0800 to +0900 on 2016-03-27 at 02:00. (Thanks to Alexander Krivenyshev.) Asia/Tehran now has DST predictions for the year 2038 and later, to be March 21 00:00 to September 21 00:00. This is likely better than predicting no DST, albeit off by a day every now and then. Changes affecting past and future time stamps America/Metlakatla switched from PST all year to AKST/AKDT on 2015-11-01 at 02:00. (Thanks to Steffen Thorsen.) America/Santa_Isabel has been removed, and replaced with a backward compatibility link to America/Tijuana. Its contents were apparently based on a misreading of Mexican legislation. Changes affecting past time stamps Asia/Karachi's two transition times in 2002 were off by a minute. (Thanks to Matt Johnson.) Contains ICU fixes from: http://bugs.icu-project.org/trac/changeset/38223 http://bugs.icu-project.org/trac/changeset/38222 Bug: 26833368 (cherry picked from commit 595ccda40f0858cac33008ea636a7c877a5f2821) Change-Id: I7b4e18683290df6546e1e7904b2711f421727d0c
2016-02-04Cherry-pick: ticket:12010: Fixed a typo @returns in the previous commit.Yoshito Umaoka
http://bugs.icu-project.org/trac/changeset/38100 Change-Id: I71add18361b9f482d9cf1d93fbb252fb72e3b85c
2016-02-04Cherry-pick: ticket:12010: Fixed some minor API doc issues.Yoshito Umaoka
http://bugs.icu-project.org/trac/changeset/38097 Change-Id: I31c7caf4792298486b5bc4216c99b7d2d2e830e9
2016-01-28Revert "Add missing "other" strings for RelativeDateTimeFormatter"Fredrik Roubert
This reverts commit f9ffd5ba94e91571d606ae6a2bdfa4403851bbc7. This work-around is no longer needed. Bug: 25883157 Change-Id: I07b66b89bf9ec8c163c49cc491b13af84318435e
2016-01-28Cherry-pick: ticket:12018: Add missing * in Javadoc syntax.Fredrik Roubert
http://bugs.icu-project.org/trac/changeset/38216 Change-Id: I2c29fcc4f88bedeb9b98efc1cc5ee521c003e59f
2016-01-28Cherry-pick: ticket:11989: API doc fixCraig Cornelius
http://bugs.icu-project.org/trac/changeset/38214 Change-Id: I688b30010f109c92bafc11ee733baab32edfeb94
2016-01-28Cherry-pick: ticket:12018: Overhaul RelativeDateTimeFormatter data loadingCraig Cornelius
http://bugs.icu-project.org/trac/changeset/38176 Bug: 25883157 Change-Id: I84198de5f0c6c79eee355a15f7106216062ecb05
2016-01-28Cherry-pick: ticket:12032: remove SimplePatternFormatter wrapper objects ↵Markus Scherer
from MeasureFormat range formatting, too http://bugs.icu-project.org/trac/changeset/38156 Change-Id: I35f92589a0dd1299c51c44f4e227b03bb1bff201
2016-01-28Cherry-pick: ticket:12032: SimplePatternFormatter allow values=null, some ↵Markus Scherer
better API docs, some changes parallel with C++ http://bugs.icu-project.org/trac/changeset/38154 Change-Id: Id7431c37188a91cf8c843d506bae22f12af4b507
2016-01-28Cherry-pick: ticket:12032: rewrite SimplePatternFormatter: quoting like ↵Markus Scherer
MessageFormat, shorter, create fewer objects; callers avoid wrapper objects http://bugs.icu-project.org/trac/changeset/38149 Change-Id: Ic03dd3456f5f784882d06cc3b92a110d743018e1
2016-01-28Cherry-pick: ticket:12030: move some code to QuantityFormatter so that ↵Markus Scherer
PluralRules does not depend on NumberFormat and to be more parallel with C++ http://bugs.icu-project.org/trac/changeset/38135 Change-Id: Idddf408685a0325ea395847a42060187b1327845
2016-01-28Cherry-pick: ticket:12031: text.PluralRules.StandardPluralCategories -> ↵Markus Scherer
impl.StandardPlural with new names for constants & methods http://bugs.icu-project.org/trac/changeset/38124 Change-Id: Ib2183cf1c27950289586953ddbbf50e33a13b1bf
2016-01-28Cherry-pick: ticket:12030: MeasureFormat handle by-plural-form ↵Markus Scherer
sideways-aliasing, by not bundling plural forms into a QuantityFormatter, reintegrate from ^/icu4j/branches/markus/sideways http://bugs.icu-project.org/trac/changeset/38122 Change-Id: Ifb52be5fefb28a2258177d0978c55223e904dee0
2015-12-07Cherry-pick: ticket:11986: optimize UnitPatternSink a bit; add ↵Markus Scherer
MeasureUnitTest.testIndividualPluralFallback() http://bugs.icu-project.org/trac/changeset/38103 Change-Id: Ib252e0a049232850580e7193e629d8fa70c7a37b
2015-12-07Cherry-pick: ticket:11986: MeasureFormat unit display patterns need to fall ↵Markus Scherer
back to the parent locales per plural form, not as a set http://bugs.icu-project.org/trac/changeset/38098 Change-Id: I993d987d1d3109c81bcf7168df32d5ba02ac219c
2015-12-07Cherry-pick: ticket:11986: slightly nicer ↵Markus Scherer
QuantityFormatter.getPluralIndex(), avoid key.toString() for it http://bugs.icu-project.org/trac/changeset/38096 Change-Id: Iea597e3aac16c105cc2facafbe52846f5eb7d1d0
2015-12-07Cherry-pick: ticket:11986: UResource.Value.getAliasString(), sink.leave(), ↵Markus Scherer
MeasureFormat use resource enumeration, store one data reference not pieces of that data http://bugs.icu-project.org/trac/changeset/38095 Change-Id: I6142ad1259bd5942173b8d2bec6c3321bbb85eb6
2015-12-07Cherry-pick: ticket:11986: rename ICUResource to UResource, consistent with ↵Markus Scherer
UResourceBundle, in case we want to make the resource enumeration public http://bugs.icu-project.org/trac/changeset/38088 Change-Id: I871a372ed1bf80335974d78a76bb4489ce777c55
2015-11-25Add missing "other" strings for RelativeDateTimeFormatterNeil Fuller
The absence of "other" causes RelativeDateTimeFormatter to throw an exception when pre-caching the strings. Bug: 25821045 Change-Id: Ie59a2f2b6a53e1edff864c6b03b2887799f79e90
2015-11-09Modify ICU class docs that refer to provisional methodsNeil Fuller
These changes might be difficult to push upstream because the methods are visible there. The changes to android_icu4j were generated using external/icu/tools/srcgen/generate_android_icu4j.sh Bug: 22023363 Change-Id: Ia5e0240972d1738864aebb6ae71d4ae7d16b3e9a
2015-10-23Fix for liblayout build break and removal of an unused targetNeil Fuller
liblayout still uses a .jar file for data so the jarjar file that was deleted from libcore has been moved into external/icu/icu4j. Change-Id: I6ac87f8d922c9d52de16378823caf7c5101fad3e
2015-10-21Update timezone data to 2015gNeil Fuller
The 2015g update for ICU56. Changes affecting future time stamps Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25. (Thanks to Fatih.) Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time. (Thanks to Alexander Krivenyshev.) Fiji's 2016 fall-back transition is scheduled for January 17, not 24. (Thanks to Ken Rylander.) Fort Nelson, British Columbia will not fall back on 2015-11-01. It has effectively been on MST (-0700) since it advanced its clocks on 2015-03-08. New zone America/Fort_Nelson. (Thanks to Matt Johnson.) Changes affecting past time stamps Norfolk observed DST from 1974-10-27 02:00 to 1975-03-02 02:00. This change includes ICU metadata changes associated with the tz data update from http://bugs.icu-project.org/trac/changeset/38058 made on 9th Oct 2015. Bug: 24595281 Change-Id: Ie3434daed8b36ec3dcdf567280173db66ce19ca9
2015-10-15Merge remote-tracking branch 'aosp/icu56' into aosp/master.Fredrik Roubert
This upgrades AOSP to ICU 56. Change-Id: Ia8229eea38169eebb4b2219869337cd761e6bca4
2015-10-15Revert "Update timezone data to 2015g"Fredrik Roubert
This reverts commit c8791b59ef044eef0d8da07b2fc8f387132c04a7. This is in order to be able to merge aosp/icu56 cleanly. The update to 2015g will then have to be done again, but on top of ICU 56 instead, in order to maintain a readable (and debuggable) change history. Change-Id: I001945c61e8b9e25534bedcf9dff7fee5f103dcd
2015-10-15Android patch: Ticket #11914: Missing FieldPositions and Attributes in ↵Rayhaan Jaufeerally
DecimalFormat This is a temporary workaround until the issue has been fixed upstream: http://bugs.icu-project.org/trac/ticket/11914 Change-Id: If8c97a5d6e0246536690772dc8adb03cf3de067e
2015-10-15Android patch: Ticket #11913: Add support for formatting BigDecimal / ↵Rayhaan Jaufeerally
BigInteger with > 309 digits. This is a temporary workaround until the issue has been fixed upstream: http://bugs.icu-project.org/trac/ticket/11913 Change-Id: I6056f03c50c6d9aec29198d6eeff8a07ebb3089c
2015-10-15Android patch: Ticket #11903: ICU DecimalFormatSymbols#setZeroDigit does not ↵Rayhaan Jaufeerally
work as expected This is a temporary workaround until the issue has been fixed upstream: http://bugs.icu-project.org/trac/ticket/11903 Bug: 23954432 Change-Id: I9e975241bfa5b9bbfa1afd22623ed14c61c66320
2015-10-13Update timezone data to 2015gNeil Fuller
Changes affecting future time stamps Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25. (Thanks to Fatih.) Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time. (Thanks to Alexander Krivenyshev.) Fiji's 2016 fall-back transition is scheduled for January 17, not 24. (Thanks to Ken Rylander.) Fort Nelson, British Columbia will not fall back on 2015-11-01. It has effectively been on MST (-0700) since it advanced its clocks on 2015-03-08. New zone America/Fort_Nelson. (Thanks to Matt Johnson.) Changes affecting past time stamps Norfolk observed DST from 1974-10-27 02:00 to 1975-03-02 02:00. This change includes ICU metadata changes associated with the tz data update from http://bugs.icu-project.org/trac/changeset/38058 made on 9th Oct 2015. [This change is a replacement for 15295e21ca7ead1422787f112f51e7567c97f689 (i.e. it reverts the revert c873cc071c2bd18ede79a3ab123cd83d3a899f11) and adds the ICU metadata changes. The previous changes can be ignored: this change is the only external/icu change needed for 2015g.] Bug: 24595281 Change-Id: I80c63bd2cc468ba0ac28e0c5e64f0d9b780d76ba
2015-10-08Copy ICU 56 release from icu-project.org to aosp/icu56.icu56Fredrik Roubert
These files were exported from the ICU Subversion repository by running the following commands: svn export \ http://source.icu-project.org/repos/icu/icu/tags/release-56-1/ icu4c svn export \ http://source.icu-project.org/repos/icu/icu4j/tags/release-56-1/ icu4j Change-Id: I52d2907ecd7d175615e09cab0dcbbed9df6f7c0f
2015-10-02Android patch: Work-around for ClassNotFoundException.Fredrik Roubert
Android throws ClassNotFoundException when trying to deserialize objects containing references to classes that don't exist. It has not yet been determined whether this is working as intended or whether this is a bug, so in the meantime this local patch for the Android copy of ICU4J makes the code expect it (as this is how Android actually works today, intentional or not). Bug: 19109180 Change-Id: Ibd31b41e89de4286aa0b4fe431c441e84d98b0eb
2015-10-02Android patch: ICU4J: likelySubtags.txt: Add lots of entries.Fredrik Roubert
This changes ICU4J tests to expect the changes made to Android ICU4C: https://android.googlesource.com/platform/external/icu/+/1d3ea9b Change-Id: I1ee174b2ba6b47199f41a23eb1ea544adb3fb2b7
2015-10-02Android patch: ICU4J: Force default Gregorian calendar.Fredrik Roubert
This changes ICU4J tests to expect the changes made to Android ICU4C: https://android.googlesource.com/platform/external/icu/+/1c16f72 Change-Id: Ibf3a0fb0cd70fa8f8ca56be4fb8358611d03c659
2015-10-02Android patch: ICU4J: Replace nb with no.Fredrik Roubert
This changes ICU4J tests to expect the changes made to Android ICU4C: https://android.googlesource.com/platform/external/icu/+/4b05912 Change-Id: I8fc3d7a647cf5e4f9711e24049b8b1362f463ef5
2015-10-02Android patch: ICU4J: Revert to "9" instead of "Month9".Fredrik Roubert
This changes ICU4J tests to expect the changes made to Android ICU4C: https://android.googlesource.com/platform/external/icu/+/fd15ce7 Change-Id: I5f94b1faf74dc38279a1c0328a6ba55df0374470
2015-10-02Android patch: ICU4J: Skip charset tests that fail with customized data.Fredrik Roubert
Android ICU4C has a nigh untangleable mess of customizations to charset data. This patch skips those tests that those customizations cause to fail. Change-Id: I2785335c4f73f479fd7df689e0f81fd5bd0c7242
2015-10-02Android patch: ICU4J: Add exceptions for big5han and gb2312han in genrb.Fredrik Roubert
This changes ICU4J tests to expect the changes made to Android ICU4C: https://android.googlesource.com/platform/external/icu/+/5775160 Change-Id: I6db565e5a739822a18da3941c0db47efb1257c7f
2015-10-02Android patch: ICU4J: Add --omitCollationRules to genrb.Fredrik Roubert
This changes ICU4J tests to expect the changes made to Android ICU4C: https://android.googlesource.com/platform/external/icu/+/b160e79 Change-Id: I50171a194048bbba1c8195f75781c9cdbbb9069d
2015-10-02Android patch: Ticket #11914: Missing FieldPositions and Attributes in ↵Rayhaan Jaufeerally
DecimalFormat This is a temporary workaround until the issue has been fixed upstream: http://bugs.icu-project.org/trac/ticket/11914 Change-Id: Ief066d8ed019615b89fda52cb504e6998ea6cd74
2015-10-02Android patch: Ticket #11913: Add support for formatting BigDecimal / ↵Rayhaan Jaufeerally
BigInteger with > 309 digits. This is a temporary workaround until the issue has been fixed upstream: http://bugs.icu-project.org/trac/ticket/11913 Change-Id: I3fbfd70be09210a435907b21a10508c1f7c88196
2015-10-02Android patch: Ticket #11903: ICU DecimalFormatSymbols#setZeroDigit does not ↵Rayhaan Jaufeerally
work as expected This is a temporary workaround until the issue has been fixed upstream: http://bugs.icu-project.org/trac/ticket/11903 Change-Id: I553da949fb5c15375f12f22b98f5e59ed827d3f1
2015-10-02Android patch: Generated *data.jar for Android patched ICU56.Fredrik Roubert
Generated like this: $AOSP/external/icu/icu4c/source/runConfigureICU Linux make ICU4J_ROOT=$AOSP/external/icu/icu4j icu4j-data-install Change-Id: I01a0012a47e8a0b60375f854f6b44f75b2a8f100
2015-10-02Copy ICU4J 56 RC from icu-project.org to aosp/icu56.Fredrik Roubert
These files were exported from the ICU Subversion repository by running the following command: svn export \ http://source.icu-project.org/repos/icu/icu4j/tags/release-56-rc/ icu4j (Previously, only the subdirectory "main" and the files in the root directory were exported to Android, as the other subdirectories only contain files that are not relevant when using ICU4J in Android. Now these are included anyway, to simplify the export process.) Change-Id: Ifca6b213abc38f7a1c38adeb980b1e8b5226ce83
2015-09-15am e12db398: Merge "Cherry-pick: ticket:11805: DecimalFormat missing ↵Fredrik Roubert
negative sign in US locale formatToCharacterIterator" * commit 'e12db398e69399b64d2a1019f33fde0bd96532c9': Cherry-pick: ticket:11805: DecimalFormat missing negative sign in US locale formatToCharacterIterator