[jira] Resolved: (JDO-397) Locale instances are shared by different
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Resolved: (JDO-397) Locale instances are shared by different




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Resolved: (JDO-397) Locale instances are shared by different  
Michelle Caisse (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-07 12:11 AM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Michelle Caisse resolved JDO-397.
---------------------------------

Resolution: Fixed

Fixed with revision: 539146


> Locale instances are shared by different PMs (when in use as FCO)
> -----------------------------------------------------------------
>
>                 Key: JDO-397
>                 URL: https://issues.apache.org/jira/browse/JDO-397
>             Project: JDO
>          Issue Type: Bug
>          Components: specification, tck2
>    Affects Versions: JDO 2 final
>            Reporter: Ilan Kirsh
>         Assigned To: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>
> Tests in org.apache.jdo.tck.models.fieldtypes are using fields of Locale that are 
defined as FCO. The definition is only a hint to the implementation but when a FCO i
s actually used, the same JVM static Locale instances are persisted using different 
Per
sistenceManagers and tests fail.
> The solution:
> In org.apache.jdo.tck.models.fieldtypes.TestUtil lines 142-148:
>                   case(5):
>                       vec.add(0, Locale.CHINA.clone());
>                       vec.add(1, Locale.FRANCE.clone());
>                       vec.add(2, Locale.GERMANY.clone());
>                       vec.add(3, Locale.JAPAN.clone());
>                       vec.add(4, Locale.ITALY.clone());
>                       break;
> similar to cloning strings few lines above:
>                   case(3):
>                       vec.add(0, new String("Hello"));
>                       vec.add(1, new String("Welcome"));
>                       vec.add(2, new String("To The"));
>                       vec.add(3, new String("Beautiful"));
>                       vec.add(4, new String("World"));
>                       break;
> And also in org.apache.jdo.tck.pc.fieldtypes.AllTypes:
>     public static final Locale[] Locale_values = {
>         (Locale)Locale.US.clone(),
>         (Locale)Locale.UK.clone(),
>         (Locale)Locale.FRANCE.clone(),
>         (Locale)Locale.GERMANY.clone(),
>         (Locale)Locale.CANADA.clone(),
>         (Locale)Locale.JAPAN.clone(),
>         (Locale)Locale.ITALY.clone(),
>         (Locale)Locale.CHINA.clone(),
>         (Locale)Locale.KOREA.clone(),
>         (Locale)Locale.TAIWAN.clone()
>     };
> similar to cloning strings few lines above:
>     public static final String[] String_values = {
>         new String(""), new String("hello world"),
>         new String("JDO has a very nice persistence API"), new String("JDO
"),
>         new String("Java"), new String("abcde"),
>         new String("abcdef"), new String("JDO is a breeze to use"),
>         new String("Java"), new String("Long-live JDO")
>     };

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:51 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register