Hi Justin, (and others)
Nice job with the new feature model! :)
I'm just getting to know it, and cleaning up the GPX datasource. I've
found a bug, that I don't know if you're aware of:
DataUtilities.defaultValue(Class type) is get called with null, if an
attributte is set to be not nillable. It's because
AttributteType.resetTypeState() called from buildType() resets the
binding, which would be used by buildDescriptor(...).
relevant stack trace:
java.lang.IllegalArgumentException: null is not supported by this method
at org.geotools.data.DataUtilities.defaultValue(DataUtilities.java:848)
at
org.geotools.feature.AttributeTypeBuilder.defaultValue(AttributeTypeBuilder.java:521)
at
org.geotools.feature.AttributeTypeBuilder.buildDescriptor(AttributeTypeBuilder.java:484)
at
org.geotools.feature.AttributeTypeBuilder.buildDescriptor(AttributeTypeBuilder.java:466)
at
org.geotools.feature.AttributeTypeBuilder.buildDescriptor(AttributeTypeBuilder.java:452)
at org.geotools.data.gpx.GpxDataStore.init(GpxDataStore.java:142)
(...)
There is also a duplicate check for type == null, in
PropertyDescriptorImpl.java, line 36.
I'm on rev 27312.
Cheers,
Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel