only set PROGRAM during the constructor and Main() and make sure it is unset in a finally block.
This is necessary since static variables inside the script class are leaked. In our case this means PROGRAM kept the whole script and potentially cached blocks from being garbage collected.
The tests not using the ScriptTest mechanism are adapted to set PROGRAM appropriately.
also includes changed exceptions and some additional char savings.
only set
PROGRAM
during the constructor andMain()
and make sure it is unset in afinally
block. This is necessary since static variables inside the script class are leaked. In our case this meansPROGRAM
kept the whole script and potentially cached blocks from being garbage collected.The tests not using the
ScriptTest
mechanism are adapted to setPROGRAM
appropriately. also includes changed exceptions and some additional char savings.