How can I specify my own Rhino context in Java?

前端 未结 1 959
自闭症患者
自闭症患者 2021-01-21 18:51

I\'m trying to ensure that my Rhino scripts (running under Java 6) are strict so that if a script developer misspells an expression I want an exception to be thrown. Currently

相关标签:
1条回答
  • 2021-01-21 19:08

    If you are doing Context.enter() before calling initGlobal() try reversing the order.

    0 讨论(0)
提交回复
热议问题