2013/7/10 Violeta Georgieva <miles...@gmail.com>: > Hi, > > In the javadoc it is not described that the method throws IAE when the > property cannot be coerced into an integer. Moreover it is specified that > the property will be ignored by the resolver: > > " > property - The index of the element in the list to return the acceptable > type for. Will be coerced into an integer, but otherwise ignored by this > resolver. > " > > Should we return the corresponding readOnly result and not throw IAE? >
If it is a non-integer property, just ignore it. For example, in Javascript a list has both indexes and a "length" property. The "length" property should be silently ignored by ListELResolver. It is the task of other resolvers (e.g. BeanELResolver) to handle it. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org