ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hille <dhilb...@gmx.de>
Subject Re: Strange "toString"-behaviour on string resources
Date Mon, 12 Jul 2010 21:38:31 GMT
Thanks a lot for taking the time to answer. I filed the bug report

https://issues.apache.org/bugzilla/show_bug.cgi?id=49588

being a bit unsure about whether to post Your additional info. Please 
feel free to add any missing useful pieces.

Hille


Stefan Bodewig schrieb:
> [...]
> 
> No, you've really found a bug.  The <resources> resource collection
> lazily caches its contents when iterating over the nested resources and
> ensures it does so properly for the "normal" resource collection
> contract.
> 
> The toString method in Resources does not ensure it builds up a new
> cache when needed.  Your first invocation gets the results of an empty
> cache, the union internally iterates over the collection and fills the
> cache which is then used by your second invocation.
> 
> If you could find the time to open a bugzilla issue for it, that would
> be great.  Otherwise I'll do so myself sometime during the rest of the
> week - it will be fixed for Ant 1.8.2.
> 
> Stefan


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


Mime
View raw message