International Components for Unicode for Java

Release Notes for ICU4J 2.2


Release Date
August 15th, 2002

For the most recent release, see the ICU4J download site.

What's new in Release 2.2

Please also note the packaging and resource data changes introduced with ICU4J 2.1, described below.

Reference Platforms

The reference platforms for version 2.2 are:

In release 2.2, there are 2 known non-reference platform compilers that fail compiling ICU4J source code, IBM JDK 1.3.1_02 and Jikes 1.16. Use ICU4J on unsupported JVMs and non-reference platform compilers at your own risk.

Warnings

In release 2.2, there is a limitation with pattern handling with DecimalFormat when a percent or permille sign is included.

These problems will be fixed in the next release.

For More Information

For further detailed information about the ICU4J library, please refer to the readme.


Collation Enhancements

ICU4J's collation has been upgraded and now differs significantly from the JDK's implementation (originally provided by us several years ago).

ICU's collation is, in general, much more efficient than the JDK's. (The time to generate sort keys is longer, because they are so much shorter and more efficient to process). For instance:

Although ICU4J's collation API is very compatable with the JDK's, there are some differences. Here is a listing of the main ones:


Package Restructuring

Starting with enhancement release 2.1 of ICU4J, the cvs repository and package organization has changed. This helps us to more cleanly organize the classes, and to clarify relationships and differences between parts of the project.

The new high-level structure is as follows:

com
   .ibm
       .richtext       ---  root of rich edit control
       .icu            ---  root of icu
            .dev       ---  classes excluded from icu4j.jar (development only)
                .data  ---  data (e.g. unicode data files)
                .demo  ---  demos (e.g. calendar, holiday, translit)
                .test  ---  api tests grouped by functionality
                .tool  ---  tools used in development
            .impl      ---  root of 'internal' classes 
                .data  ---  shipped data (text and resources)
            .lang      ---  similar to java.lang
            .math      ---  similar to java.math
            .text      ---  similar to java.text
            .util      ---  similar to java.util

By and large class names didn't change, only packaging, so changing the packages in your source should be sufficient to resolve most problems. The package change will break serialization for those classes that are serializable.

The classes in com.ibm.icu.impl are internal use only. Their javadocs are not generated, their APIs are not supported, and they can change APIs or disappear entirely at any time. Many classes in this package are public in order to facilitate use by classes in multiple other packages, but this should not be construed to mean that such classes will necessarily be 'promoted' to full public classes in the future. Clients are warned not to depend on anything in this package.


ICU Resource Data added to ICU4J

Starting with JDK 1.4, the resource information that used to be available through public classes in java.text.resources is no longer available. Sun has moved these classes to an internal package. This has two consequences. One, both the format and contents of the resources can now change at any time-- dot releases and special bugfix releases can be different. Two, the resources are now no longer accessible without explicit permission by the java user.

For these reasons, starting with release 2.1, ICU4J includes its own resource information which is completely independent of the JDK resource information. The new ICU4J information is equivalent to the information in ICU4C and ultimately derives from the same source. This allows ICU4J 2.1 and above to be built on, and run on, JDK 1.4.

There are two main consequences of this decision. The first is an increase in size of ICU4J. The new resource information, currently stored as class files residing in a jar file, is approximately 1.15 megabytes. The second is an increased difference between ICU's resource information and Java's. Neither is a clear superset of the other. For example, Java core currently has more timezone information than ICU. ICU's model for handling currency is also different than Java's. This will change over time as new versions of Java and ICU are released.

In addition to the resource information that corresponds to the Java resource information, ICU4J also includes resource information needed to support its additional features, such as Transliteration, Calendar, and DictionaryBasedBreakIterator. This information has existed in some form in prior releases on ICU4J and has not greatly changed in size.

For information about modifying resource information, please see the readme.


License

Please read and understand the license included with this release before installing and using the ICU4J libraries.


Copyright (C) 2002 International Business Machines Corporation and others. All Rights Reserved.