On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > Geir, > > Geir Magnusson Jr. wrote: > > what if it returns something you can't iterate over? > > You get a ClassCastException :( > > > Maybe check the return type first? > > I agree. It's your choice if you want to throw something like > VelocityException or some other RuntimeException, or if you want to > ignore the loop and log an error (similar to #if($doesntExist = 'foo') > behavior).
i'll log a message to point out the problem and return null from UberspectImpl.getIterator(), so that it acts otherwise just as it would have before. > -chris > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
