xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <tkorm...@ilog.fr>
Subject Re: static/threading problem with SVGFontUtilities
Date Thu, 21 Feb 2002 08:59:16 GMT
Keiron Liddle wrote:

> Hi Vincent,
> No. It is a new BridgeContext every time a document is processed.
> I had a look at it and it seems to me that the problem could be:
> In BridgeContext
> One thread is at line 225, so that thread knows the fontFamilyMap is not 
> null.
> Another thread then goes through line 250 and sets the fontFamilyMap to 
> null. Since fontFamilyMap is static and common to both threads.
> The first thread then returns null.

I suggest we remove the static modifier on fontFamilyMap in BridgeContext

such as a new font family Map is created per document (ie per BridgeContext).

Any comments?


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

View raw message