<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 6: library not thread safe</title><link href="https://sourceforge.net/p/secondstring/bugs/6/" rel="alternate"/><link href="https://sourceforge.net/p/secondstring/bugs/6/feed.atom" rel="self"/><id>https://sourceforge.net/p/secondstring/bugs/6/</id><updated>2010-05-11T13:24:46Z</updated><subtitle>Recent changes to 6: library not thread safe</subtitle><entry><title>library not thread safe</title><link href="https://sourceforge.net/p/secondstring/bugs/6/" rel="alternate"/><published>2010-05-11T13:24:46Z</published><updated>2010-05-11T13:24:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net5bff289f623d6105d4bde071df620e44016c790f</id><summary type="html">&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;</summary></entry></feed>