You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stefan Mandel (JIRA)" <ji...@apache.org> on 2011/04/01 18:27:05 UTC

[jira] [Created] (WICKET-3588) AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex

AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex
------------------------------------------------------------------------------------

                 Key: WICKET-3588
                 URL: https://issues.apache.org/jira/browse/WICKET-3588
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.5-RC2
         Environment: any
            Reporter: Stefan Mandel


I got a StringIndexOutOfBoundsException while submitting Ajax from Wicket. It points to AppendingStringBuffer:508.

The method StringBuilder.getChar expects the arguments (startIndex, stopIndex, buffer, count)
AppendingStringBuilder provides (startIndex, length, buffer, count) => better use startIndex + length instead of length

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3588) AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex

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

Stefan Mandel updated WICKET-3588:
----------------------------------

    Attachment: stacktrace.txt

Attachement is the stacktrace indicating the exception

> AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex
> ------------------------------------------------------------------------------------
>
>                 Key: WICKET-3588
>                 URL: https://issues.apache.org/jira/browse/WICKET-3588
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: any
>            Reporter: Stefan Mandel
>         Attachments: stacktrace.txt
>
>
> I got a StringIndexOutOfBoundsException while submitting Ajax from Wicket. It points to AppendingStringBuffer:508.
> The method StringBuilder.getChar expects the arguments (startIndex, stopIndex, buffer, count)
> AppendingStringBuilder provides (startIndex, length, buffer, count) => better use startIndex + length instead of length

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WICKET-3588) AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex

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

Martin Grigorov resolved WICKET-3588.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC4
         Assignee: Martin Grigorov

Fixed with r1088337.

> AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex
> ------------------------------------------------------------------------------------
>
>                 Key: WICKET-3588
>                 URL: https://issues.apache.org/jira/browse/WICKET-3588
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: any
>            Reporter: Stefan Mandel
>            Assignee: Martin Grigorov
>             Fix For: 1.5-RC4
>
>         Attachments: stacktrace.txt
>
>
> I got a StringIndexOutOfBoundsException while submitting Ajax from Wicket. It points to AppendingStringBuffer:508.
> The method StringBuilder.getChar expects the arguments (startIndex, stopIndex, buffer, count)
> AppendingStringBuilder provides (startIndex, length, buffer, count) => better use startIndex + length instead of length

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (WICKET-3588) AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex

Posted by "Stefan Mandel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014720#comment-13014720 ] 

Stefan Mandel edited comment on WICKET-3588 at 4/1/11 4:27 PM:
---------------------------------------------------------------

Attachment is the stacktrace indicating the exception

      was (Author: almond):
    Attachement is the stacktrace indicating the exception
  
> AppendingStringBuffer.append(StringBuilder, int, int) interprets length as stopIndex
> ------------------------------------------------------------------------------------
>
>                 Key: WICKET-3588
>                 URL: https://issues.apache.org/jira/browse/WICKET-3588
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: any
>            Reporter: Stefan Mandel
>         Attachments: stacktrace.txt
>
>
> I got a StringIndexOutOfBoundsException while submitting Ajax from Wicket. It points to AppendingStringBuffer:508.
> The method StringBuilder.getChar expects the arguments (startIndex, stopIndex, buffer, count)
> AppendingStringBuilder provides (startIndex, length, buffer, count) => better use startIndex + length instead of length

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira