play gae リストのサイズ取得時のエラー

ローカルでは

${list.size}

で動いていたのに、GAEにデプロイしたらエラーになった

Execution error occured in template /app/views/xxxxxx.html. Exception raised was IllegalAccessException : Reflection is not allowed on private int java.util.ArrayList.size.

play.exceptions.TemplateExecutionException: Reflection is not allowed on private int java.util.ArrayList.size
	at play.templates.BaseTemplate.throwException(BaseTemplate.java:84)
	at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:252)
	at play.templates.Template.render(Template.java:26)

フィールドにアクセスしてエラーになっていたので、メソッドにアクセスするようにすればOK

${list.size()}