Eclipse ICU Library Bug

There is a bug in ICU4J 3.4.4 that is shipped with Eclipse 3.2RC1a.

The bug shows up in the form of MissingResourceExceptions or infinite loops with CACAO and JamVM.

You can download a fixed version of com.ibm.icu_3.4.3.jar here. Just put it in the plugins directory, overwriting the original .jar file.

I have reported this bug in the ICU bug tracker as bug #5183.

I have reported this bug in the Eclipse Bugzilla as bug #139457.

The following patch fixes the bug:

diff -u -p -r icu-orig/src/com/ibm/icu/util/UResourceBundle.java icu/src/com/ibm/icu/util/UResourceBundle.java
--- icu-orig/src/com/ibm/icu/util/UResourceBundle.java  2006-02-24 09:31:02.000000000 +0100
+++ icu/src/com/ibm/icu/util/UResourceBundle.java       2006-04-29 18:50:06.000000000 +0200
@@ -284,7 +284,7 @@ public abstract class UResourceBundle ex
             m = new HashMap();
             BUNDLE_CACHE = new SoftReference(m);
         }
-        m.put(key, b);
+        m.put(key.clone(), b);
     }

     /**

cacaowiki: EclipseIcuBug (last edited 2006-05-02 09:54:17 by EdwinSteiner)