[loc-en-dev] ResourceBundle lookup candidate list and inheritance

Doug Felt dougfelt at google.com
Wed Jul 14 15:26:00 PDT 2010


Is this intended behavior?  It sounds broken to me.

Doug

On Tue, Jul 13, 2010 at 12:24 PM, Yoshito Umaoka <y.umaoka at gmail.com> wrote:

> For now, Java uses the same list for lookup and inheritance.
>
> For example, if you customize the lookup candidate list using
> ResourceBundle.Control and produce locale list like - "fr", "de", ROOT, and
> if all bundles exist, bundle_de will be the parent of bundle_fr, root bundle
> will be the parent of bundle_de. In other words,
> ResourceBundle#getObject(String key) will get a resource from bundle_de when
> the resource is missing in bundle_fr, then if it does not exist in
> bundle_de, try the root bundle.
>
> We probably cannot change the behavior, so we should consider this aspect
> for designing special lookup order for Chinese/Norwegian locales.
>
> -Yoshito
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/locale-enhancement-dev/attachments/20100714/970f869f/attachment.html 


More information about the locale-enhancement-dev mailing list