I am surprised that line doesn't cause NPE either. Keep in mind that TreeCacheAop only supports limited Collection classes API. And values() is not currently supported!
I am working on to provide a more complete set of API to support though. It's planned to come out in post-1.1.
So stay tuned.
Thanks for the info. Where can I find a list of what API TreeCacheAop supports and what it doesn't?
I don't have it except in the source code. But please bear with me. Once I have the Collection class API re-implemented in 1.x, I will document it.