ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: Next set of JavaDoc patches
Date Mon, 18 Feb 2002 19:20:03 GMT
> >Identified thread-safety problem in DemuxOutputStream (look for XXX)
> Interesting,. There is a bug entry about odd output running <java> in
> <parallel>, but like most thread problems, replication is a 
> dog. maybe this was the cause.

I'd be thrilled if what I was doing turned out to be immediately useful :)

Just for my own reference if I decide to go back and track this:

Reproducing this could be interesting, certainly - you need to *happen* to get a thread context
switch between write ('\r') and write ('\n') in one thread *and* the other thread get both
'\r' and '\n' before the other thread gets in again. On the other hand, putting some kind
of logging (and conditional sleeping, possibly) in the potentially problematic bit of code
could make it more easily reproducible.

I can't actually see why we'd get this behaviour though - I would have thought the streams
would get processed eventually when they were flushed/closed.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message