nishtahir / gwt-pectin

Automatically exported from code.google.com/p/gwt-pectin
0 stars 0 forks source link

Update BeanModelProvider to enforce correct element types for collections #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currenty it's possible to bind a listOfType(T.class) to a collection whose
element type is not T and not get an exception until you try and read from
a bean.

For all other types the exception occurs when you invoke
fieldOfType(T.class).boundTo(provider, "property") thus allowing a unit
test that simply instantiates the form to ensure all the binding are
correct.  Without this it requires tedious unit testing to ensure list
properties are in sync with the bean properties.   

Original issue reported on code.google.com by andrew.pietsch on 11 Feb 2010 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by andrew.pietsch on 26 Feb 2010 at 5:39