Man... that was a subtle one! Generally, JANINO does not
attempt to compile constant expressions like "null==null"
into code, because it recognizes them as constant.
Only in this case (an && expression with the LHS being a
constantly false expression) it does so, and fails.
"BinaryOperation.compileBoolean()" now checks whether "this"
has a constant value.
Will release in V 2.0.9.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=865893
Man... that was a subtle one! Generally, JANINO does not
attempt to compile constant expressions like "null==null"
into code, because it recognizes them as constant.
Only in this case (an && expression with the LHS being a
constantly false expression) it does so, and fails.
"BinaryOperation.compileBoolean()" now checks whether "this"
has a constant value.
Will release in V 2.0.9.