harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imran Ghory (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4670) Locale.getAvailableLocales() isn't thread safe
Date Sun, 26 Aug 2007 18:07:30 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522870
] 

Imran Ghory commented on HARMONY-4670:
--------------------------------------

Looks good to me

> Locale.getAvailableLocales() isn't thread safe
> ----------------------------------------------
>
>                 Key: HARMONY-4670
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4670
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Imran Ghory
>            Assignee: Tim Ellison
>
> getAvailableLocales() does the following:
> if (availableLocales == null) {
>             ....
>         }
> (with  class private static Locale[] availableLocales;)
> This isn't thread-safe; one thread could end up with a partially constructed object as
availableLocales isn't volatile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message