I would like to
support a simple script that the user types in. For this application, I
would prefer not to have beanshell automatically create variables, so I am
setting strictJava=true. I declare the
"pre-defined" variables I want the user to be able to reference in the script.
The problem is that undeclared variables on the right hand side of
the expression do not seem to generate an error. For example, if
var1 is declared as a boolean and misSpelled is not declared at all, I would
like to see an error/exception.
Boolean b = (Boolean) interpreter.eval("var1==misSpelled")
Instead of getting an exception, I just get back false.
Is this a bug in strictJava mode? Is there another way to get what