Good to know that this is not just me :-) Thanks Holger!
I will see how easy it is to register with Apache Bugzilla and report a
bug. Since fixing it will most likely take time, I suggest that we go
ahead with ant-fix.jar.
Andrus
On Sunday, March 30, 2003, at 09:00 AM, Holger Hoffstätte wrote:
> - I look into ant's DOMElementWriter and see a shared StringBuffer
> ivar sb
> that seems to be reused. An alarm bell goes off. Every written DOM
> element
> string is mangled via encode(), where I see that the shared
> StringBuffer
> is first set to size 0, then filled, then at the very end - the
> terrible
> toString() happens. I replace toString() with substring(0,
> sb.length()),
> run the unit test suite and start to create all reports.
>
> - KABOOM! ** _1_ second ** for collecting all tests into the single XML
> file before feeding it into Xalan (which takes its usual 9 seconds).
> Yes,
> the generated output is still correct.
>
> Any suggestion about what to do now? Could someone please take the
> time to
> report both the output buffering and toString() problems to the ant
> folks?
> I just checked the ant 1.5.3rc1 source and it's still in there. Btw,
> regarding ant: 1.5.2 creates 'broken' archives; I'll see that we get
> 1.5.3
> into cvs as soon as it's released (and verifiably works).
>
> If they refuse to fix this for whatever political reasons I can pack
> up a
> little ant-fix.jar, so that we don't waste more time waiting for
> reports.
>
> Holger
>
This archive was generated by hypermail 2.0.0 : Sun Mar 30 2003 - 12:00:16 EST