#56 ScriptRunner STRICT static field

open
nobody
None
5
2008-02-20
2008-02-20
Eran Levy
No

Hello,
We have a multi-threaded application which uses HTML parser.
The ScriptRunner STRICT field and the Lexer STRICT_REMARKS field are both static fields which makes it difficult to control the parser usage in the current multi-threaded JVM. As far as I understand, once you set one of this fields to true/false, all Parser instances in the current JVM are affected. Which makes it difficult to set those fields in different cases while working in a multi-threaded application environment.

Can you recommend a way to solve it?
OR
Is it going to be fixed in next versions?

Thanks for your help,
Eran

Discussion

  • Derrick Oswald
    Derrick Oswald
    2008-02-21

    Logged In: YES
    user_id=605407
    Originator: NO

    I don't think there is an easy solution.
    How would you like to solve it?

     
  • Eran Levy
    Eran Levy
    2008-02-23

    Logged In: YES
    user_id=2014500
    Originator: YES

    If there is no an easy solution, can you recommend a workaround or something else?
    It will help us alot.
    Thanks