]> granicus.if.org Git - icu/commitdiff
ICU-9423 change the numeric value of static final Collator.ReorderCodes.DEFAULT from...
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 25 Jul 2012 21:06:19 +0000 (21:06 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Wed, 25 Jul 2012 21:06:19 +0000 (21:06 +0000)
X-SVN-Rev: 32066

icu4j/main/classes/collate/src/com/ibm/icu/text/Collator.java
icu4j/readme.html

index b9b24ca2c0d8e9d1cdfd0bff2a1db82e988be9ae..bb7d6fb40d450532589f6e095cc6609198af134f 100644 (file)
@@ -241,7 +241,7 @@ public abstract class Collator implements Comparator<Object>, Freezable<Collator
          * A special reordering code that is used to specify the default reordering codes for a locale.
          * @stable ICU 4.8
          */
-        public final static int DEFAULT          = 1;
+        public final static int DEFAULT          = -1;  // == UScript.INVALID_CODE
         /**
          * A special reordering code that is used to specify no reordering codes.
          * @stable ICU 4.8
index fef3d01dcf57422e3b5f0047612ebf63bf18fe78..f97aeea71474ab44e515bf88bda9962481763bd2 100644 (file)
@@ -13,8 +13,8 @@ h4.doc { text-decoration: underline }
 <body style="background-color: rgb(255, 255, 255);" lang="EN-US"
  link="#0000ff" vlink="#800080">
 <h2>International Components for Unicode for Java (ICU4J)</h2>
-<h3>Read Me for ICU4J 50 Milestone 1</h3>
-(Last Update: June 25, 2012)
+<h3>Read Me for ICU4J 50 Milestone 2</h3>
+(Last Update: July 25, 2012)
 <hr size="2" width="100%">
 
 <p><b>Note:</b> This is a development milestone release of ICU4J 50.
@@ -127,6 +127,13 @@ found in ICU4J.</p>
 
 <h3 class="doc"><a name="changes"></a>Changes In This Release</h3>
 <h4>New features and changes</h4>
+<p>We changed the numeric value of
+  <code>static final Collator.ReorderCodes.DEFAULT</code> from +1 to -1
+  so that it does not collide with a valid UScript code (<code>UScript.INHERITED</code>),
+  and to make it match <code>UScript.INVALID_CODE</code> and C/C++ <code>UCOL_REORDER_CODE_DEFAULT</code>,
+  as had been intended.
+  Programs using <code>Collator.ReorderCodes.DEFAULT</code> must be recompiled.</p>
+
 <p>
 See the <a href="http://sites.google.com/site/icusite/download/50milestone">ICU 50 milestone download page</a>
 about new features in this release.  The list of API changes since the previous ICU4J release is available