RodionGork / FREJ

Fuzzy Regular Expressions for Java
http://frej.sf.net
GNU Lesser General Public License v3.0
26 stars 7 forks source link

Regex objects should be reuse-safe and thread-safe #2

Open KarolS opened 10 years ago

KarolS commented 10 years ago

Currently:

There are probably more problems similar to those, those two I found after just a cursory glance into the source code.

Currently, in order to use this library, I had to wrap all operations on Regex objects in a static synchronize block and pull out all the results from them while still inside the lock.

RodionGork commented 9 years ago

Yes, I'm afraid that when I wrote this, I have little understanding of thread-safety :) I hope we can find a volunteer to fix this...

UPD I've removed staticness from Fuzzy. Updated binaries at frej.sf.net