<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 6: library not thread safe</title><link>https://sourceforge.net/p/secondstring/bugs/6/</link><description>Recent changes to 6: library not thread safe</description><atom:link href="https://sourceforge.net/p/secondstring/bugs/6/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 11 May 2010 13:24:46 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/secondstring/bugs/6/feed.rss" rel="self" type="application/rss+xml"/><item><title>library not thread safe</title><link>https://sourceforge.net/p/secondstring/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;SimpleTokenizer has a static DEFAULT_TOKENIZER used by many methods in their constructors. However, SimpleTokenizer has a Map which is not thread safe. We have had infinite loops in the core java treemap get when used in a multi-threaded web environment. It would also seem incorrect to share a tokenizer between all methods.&lt;/p&gt;
&lt;p&gt;One solution is to change the matching methods constructors to use a new SimpleTokenizer each.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 11 May 2010 13:24:46 -0000</pubDate><guid>https://sourceforge.net5bff289f623d6105d4bde071df620e44016c790f</guid></item></channel></rss>