xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Gawron <christian.gaw...@gmx.de>
Subject Re: Bug in org.apache.batik.svggen.DOMTreeManager?
Date Sun, 13 Feb 2005 17:26:49 GMT
Hi Thomas,

Thomas DeWeese wrote:
> Hi Christian,
> 
> Christian Gawron wrote:
> 
>> I occasionally got ArrayIndexOutOfBoundsExceptions in the
>> DOMTreeManager, and I think the reason were two loops in the
>> appendGroup(...) and recycleTopLevelGroup(...) methods where the size 
>> of groupManagers was erroneously assumed to be constant during the loop. 
> 
> 
>   I'm not sure I can see how the size could change during the loop.

have not looked into gm.recycleCurrentGroup(), but maybe it deletes an entry in the 
groupManagers vector?
Replacing the fixed boundary by groupManagers.size() definitely solved my problem.

>   Are you calling Graphics2D methods from multiple threads?  If so it
> is certainly not currently multi-thread safe.
No, my application is single threaded.

Best wishes,
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message