]> granicus.if.org Git - icu/commitdiff
ICU-8821 Handle no inheritance marker in ICU4J
authorJohn Emmons <emmo@us.ibm.com>
Mon, 19 Sep 2011 16:10:48 +0000 (16:10 +0000)
committerJohn Emmons <emmo@us.ibm.com>
Mon, 19 Sep 2011 16:10:48 +0000 (16:10 +0000)
X-SVN-Rev: 30683

icu4j/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundle.java

index 722818081cbbad99bc20813d98e86ea5c968ffcd..a02fdc1f262afc4fc7289b83851d0b01b8dbad05 100644 (file)
@@ -78,6 +78,8 @@ public  class ICUResourceBundle extends UResourceBundle {
     public static final String ICU_REGION_BASE_NAME = ICU_BASE_NAME + "/region";
     public static final String ICU_ZONE_BASE_NAME = ICU_BASE_NAME + "/zone";
 
+    private static final String NO_INHERITANCE_MARKER = "\u2205\u2205\u2205";
+
     /**
      * The actual path of the resource
      */
@@ -347,6 +349,11 @@ public  class ICUResourceBundle extends UResourceBundle {
                 + this.getClass().getName() + ", key " + getType(),
                 path, getKey());
         }
+
+        if ( result.getType() == ICUResourceBundle.STRING && result.getString().equals(NO_INHERITANCE_MARKER)) {
+            throw new MissingResourceException("Encountered NO_INHERITANCE_MARKER",path,getKey());
+        }
+
         return result;
     }