You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Imran Ghory (JIRA)" <ji...@apache.org> on 2007/08/22 22:22:30 UTC
[jira] Created: (HARMONY-4670) Locale.getAvailableLocales() isn't
thread safe
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
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.
[jira] Resolved: (HARMONY-4670) Locale.getAvailableLocales() isn't
thread safe
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison resolved HARMONY-4670.
----------------------------------
Resolution: Fixed
Thanks Imran.
Fixed in LUNI module at repo revision r568966.
Please check it was fixed as you expected.
> 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.
[jira] Commented: (HARMONY-4670) Locale.getAvailableLocales() isn't
thread safe
Posted by "Imran Ghory (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HARMONY-4670) Locale.getAvailableLocales() isn't
thread safe
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison updated HARMONY-4670:
---------------------------------
Assignee: Tim Ellison
> 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.
[jira] Closed: (HARMONY-4670) Locale.getAvailableLocales() isn't
thread safe
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-4670.
--------------------------------
Verified by Imran
> 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.