suppose i have a class:
because the property util and the method replaceFoo are static, is there a chance that under heavy load, one thread might receive another thread's result?
=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
Code:
import org.apache.oro.text.perl.Perl5Util;
class Foo {
static Perl5Util util = new Perl5Util();
/**
* replace "foo" with "bar" in str
*/
public static String replaceFoo(String str) {
return util.substitute("s#foo#bar#gi", str);
}
}
because the property util and the method replaceFoo are static, is there a chance that under heavy load, one thread might receive another thread's result?
=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }