Detail
Detail
Bugfix
If the length of a list is compared with a constant in a TL script expression, a ClassCastException occurs.
list = ... if (list.size() > 1, list.elementAt(1), null);
Cause
Here 1` is evaluated to a literal with the value `1.0D thus to a double, and list.size() to an integer. This leads to an error.
Solution
When comparing Number, the tl:NumberComparator is used.
Test
TestSearchExpression#testCompare()