You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Li Jing Qin (JIRA)" <ji...@apache.org> on 2009/05/25 06:49:45 UTC

[jira] Created: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

[classlib][luni] StringBuilder behavior affects the string got by the toString
------------------------------------------------------------------------------

                 Key: HARMONY-6212
                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
             Project: Harmony
          Issue Type: Bug
            Reporter: Li Jing Qin


We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:

StringBuilder desc = new StringBuilder();
desc.append("abcde");
String a = desc.toString();
desc.delete(0, desc.length());
desc.append("yy");
System.out.println(a);

We got "yycde" amazingly.

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


[jira] Updated: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Beyer updated HARMONY-6212:
----------------------------------

          Component/s: Classlib
    Affects Version/s: 5.0M9
        Fix Version/s: 5.0M10

> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>            Reporter: Li Jing Qin
>            Assignee: Nathan Beyer
>             Fix For: 5.0M10
>
>         Attachments: HARMONY-6212-testcase.diff, HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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


[jira] Updated: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Li Jing Qin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Li Jing Qin updated HARMONY-6212:
---------------------------------

    Attachment: HARMONY-6212.diff

Would anyone please try it?

> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Li Jing Qin
>         Attachments: HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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


[jira] Assigned: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Beyer reassigned HARMONY-6212:
-------------------------------------

    Assignee: Nathan Beyer

> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Li Jing Qin
>            Assignee: Nathan Beyer
>         Attachments: HARMONY-6212-testcase.diff, HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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


[jira] Updated: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Li Jing Qin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Li Jing Qin updated HARMONY-6212:
---------------------------------

    Attachment: HARMONY-6212-testcase.diff

Test case is added to the StringBuilderTest

> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Li Jing Qin
>         Attachments: HARMONY-6212-testcase.diff, HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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


[jira] Commented: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Li Jing Qin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713386#action_12713386 ] 

Li Jing Qin commented on HARMONY-6212:
--------------------------------------

Verified. Thanks Nathan.

> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>            Reporter: Li Jing Qin
>            Assignee: Nathan Beyer
>             Fix For: 5.0M10
>
>         Attachments: HARMONY-6212-testcase.diff, HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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


[jira] Closed: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Beyer closed HARMONY-6212.
---------------------------------


> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>            Reporter: Li Jing Qin
>            Assignee: Nathan Beyer
>             Fix For: 5.0M10
>
>         Attachments: HARMONY-6212-testcase.diff, HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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


[jira] Resolved: (HARMONY-6212) [classlib][luni] StringBuilder behavior affects the string got by the toString

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Beyer resolved HARMONY-6212.
-----------------------------------

    Resolution: Fixed

Patches applied at r778555. Please verify they were applied as expected.

> [classlib][luni] StringBuilder behavior affects the string got by the toString
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-6212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>            Reporter: Li Jing Qin
>            Assignee: Nathan Beyer
>             Fix For: 5.0M10
>
>         Attachments: HARMONY-6212-testcase.diff, HARMONY-6212.diff
>
>
> We use share mode under the abstractStringBuilder and String, since we have changed some thing in the model, there is some small bugs occurred then. Here is the one:
> StringBuilder desc = new StringBuilder();
> desc.append("abcde");
> String a = desc.toString();
> desc.delete(0, desc.length());
> desc.append("yy");
> System.out.println(a);
> We got "yycde" amazingly.

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