[stringtemplate-interest] Possible bug in AutoIndentWriter.pushAnchorPoint

Terence Parr parrt at cs.usfca.edu
Thu Oct 16 15:25:40 PDT 2008


Nice catch...i guess i should run code coverage ;)
Ter
On Oct 16, 2008, at 11:11 AM, Sam Harwell wrote:

> That line of code (actually the 3 inside that if statement block) is  
> the
> only one in AutoIndentWriter that isn't hit by any of the unit  
> tests. :)
> As far as I can tell, it would take 11 levels of wrapping to hit it,  
> but
> it is definitely a bug in that case.
>
> Sam
>
> -----Original Message-----
> From: Terence Parr [mailto:parrt at cs.usfca.edu]
> Sent: Thursday, October 16, 2008 1:08 PM
> To: Sam Harwell
> Cc: stringtemplate-interest
> Subject: Re: [stringtemplate-interest] Possible bug in
> AutoIndentWriter.pushAnchorPoint
>
> Possibly...i'll look.
> Ter
> On Oct 13, 2008, at 1:13 PM, Sam Harwell wrote:
>
>> Should the following line in AutoIndentWriter.pushAnchorPoint:
>>
>> System.arraycopy(anchors, 0, a, 0, anchors.length-1);
>>
>> Be this?
>>
>> System.arraycopy(anchors, 0, a, 0, anchors.length);
>>
>> Sam
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list