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?
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?