0

In continuing my question, Java uses Beanshell as script engine, while BeanShell Engine Script Compilable is not supported.

Why java doesn't have script engine other than Beanshell that support Compilable ? can/should we override it? is there an enhancement on this issue?

Compilable interface:

compile scripts to a form that can be executed repeatedly without recompilation

I found implementation as JavaScriptEngine and other JavaScriptEngine but I don't know if it's relevant to use.

Does java intentionally let Groovy implement it and thus become the expected scripting language to use?

Community
  • 1
  • 1
Ori Marko
  • 56,308
  • 23
  • 131
  • 233

1 Answers1

0

It's not a complete answer, but worth mention beanshell2 project,

I found beanshell2 issue to support Compilable There's a fix that can be download since version bsh-2.1b4.jar

  • There's also latest bsh-2.1.6.jar
  • There should be 2.1.8 version according to beanshell2

Feb. 20, 2014

Update v2.1.8

Also latest Beanshell 2.0b5 (or 2.0b6) support Compilabe but it throw new Error("unimplemented");

EDIT:

New issue for implementing Compilabe in Beanshell 2.0

Community
  • 1
  • 1
Ori Marko
  • 56,308
  • 23
  • 131
  • 233