Hello Jody,

because you are the "author" of org.geotools.data.DataUtilities I 
address this mail primary to you...

The helper method defaultValue(AttributeType aType) throws an Exception 
if AttributeType.createDefaultValue() returns NULL, but the given 
attribute is not nillable.
In my opinion the method should first try to generate a default value by 
calling defaultValue(Class type) and only if this fails, react with the 
IllegalAttributeException.
If you have already the defaultValue(Class type) method, so why not 
using it?

Maybe you can fix this in the next release.

Kind regards

Martin


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to