ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Bug 7657: NetRexxC log enhancements/bug fixes
Date Mon, 01 Apr 2002 14:48:34 GMT
> Here's the patch:
Did this get tested??

[snip]
> +            while ((l=in.readLine())!=null) {
> +               lb=new StringBuffer(l);
> +                int idx;
> +                while ((idx=l.indexOf(ddir))!=-1) { // path is 
mentioned in the message
> +                    lb.replace(idx,idx+dlen,sdir);
> +                }
It looks like the above would be an infinite loop if the destdirectory 
appears in the string, as the condition is l.indexOf, and the replace 
happens on lb.


[snip]
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


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


Mime
View raw message