velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leos Literak <>
Subject key not removed from context
Date Sat, 10 Aug 2002 19:30:07 GMT

I just decided to finally implement
the feature, that null value assignment
unsets variable on left side.
Well, it seemed straightforward, but
it doesn't work :-)

So, I realized, that I have to modify
ASTSetDirective's method render().

My simplific implementation is:

if ( value  == null)
  System.out.println("null assignment 
  String lhs = left.getRootString();
  Object o = context.remove(lhs);
  return false;
I could find the variable in context
but when I debugged remove, I realized
it goes in context.vmproxyhash, where
table contains only one different variable.
So the result is, that Object o = null
and variable wasn't deleted from context.

Is this behaviour bug or feature?
Thanks for fast response and in this
case please cc me, because
has several day delay :-(.

Btw is not there news bridge with this conference?
I would be hapy to watch it each day without
filling my mailbox.



Leos Literak - tady je tucnakum hej!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message