Engine script bindings take precedence over global ones in Velocity
Last modified by Michael Hamann (non-admin) on 2026/11/20 11:35
In Velocity, a binding of the engine scope of the ScriptContext, which holds the variables set by Velocity scripts, now hides a binding of the global scope with the same name, as in JSR-223. Before, a global binding replaced the Velocity variable or engine binding with the same name each time a Velocity script was executed. Code setting a global binding to override a script variable should set it in the engine scope instead. See Share variable between languages.