check the method
public Object visit(CLVFTrimNode node, Object data)
from FilterExpParserExecutor class
what will happen if I try a filter with trim(“”) ???
this method throws exception because of start and end indexes are not dependent
end becames -1 and then
stack.push(seq.subSequence(start,end)); is executed with 0 and -1…
what about trim(" ") ?
then start becomes > than end which also results in exception.
Simplest solution:
for ciklus for the end comes first
then this two lines:
end++;
length = end;
and then for ciklus for the start
I spend hours trying to find mistake in my usage of filters and trim but in the end I think this is your BEGINERS mistake
Looking forward for a solution in cvs
Thanks