You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by barney2k7 <gi...@git.apache.org> on 2016/12/06 14:32:03 UTC

[GitHub] ant pull request #27: Bug 58661: avoid duplicate characters in stack traces

GitHub user barney2k7 opened a pull request:

    https://github.com/apache/ant/pull/27

    Bug 58661: avoid duplicate characters in stack traces

    This fixes https://bz.apache.org/bugzilla/show_bug.cgi?id=58661
    
    As suspected, the problem is in the 'br-replace' template that is off by one character in some cases:
    $secondhalflen is actually less than string-length($secondhalfword) in case the number of chars in word is
    even. This leads to $firsthalflen being calculated too long, resulting in a duplicated character.
    
    Note that unlike the patch attached to the bug, this pull requests solves just the duplicate character problem - nothing else.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/barney2k7/ant Bug-58661

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ant/pull/27.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #27
    
----
commit 0633fe53fb8c49792dcd3ad36e2dcb580763ecea
Author: barney2k7 <ba...@gmail.com>
Date:   2016-12-06T14:25:41Z

    Bug 58661: avoid duplicate characters in stack traces
    
    The problem was that $secondhalflen is actually less than
    string-length($secondhalfword) in case the number of chars in word is
    even. This leads to $firsthalflen being calculated too long, resulting
    in a duplicated character.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


[GitHub] ant pull request #27: Bug 58661: avoid duplicate characters in stack traces

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/ant/pull/27


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


[GitHub] ant issue #27: Bug 58661: avoid duplicate characters in stack traces

Posted by bodewig <gi...@git.apache.org>.
Github user bodewig commented on the issue:

    https://github.com/apache/ant/pull/27
  
    Thanks a lot.
    
    I vaguely recall looking at the original patch and thinking "this is big", but strangely never commented.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org