Use of restrictions fails based on lack of property accessor for Attribute
--------------------------------------------------------------------------
Key: GEOT-1579
URL: http://jira.codehaus.org/browse/GEOT-1579
Project: GeoTools
Issue Type: Bug
Components: core feature
Reporter: Jody Garnett
I have added the following test case to TypesTest:
{code}
public void testRestrictionCheck() {
FilterFactory fac = CommonFactoryFinder.getFilterFactory(GeoTools
.getDefaultHints());
String attributeName = "string";
PropertyIsEqualTo filter = fac.equals(fac.property(attributeName), fac
.literal("Value"));
SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
//$NON-NLS-1$
builder.setName("test");
builder.restriction(filter).add(attributeName, String.class);
SimpleFeatureType featureType = builder.buildFeatureType();
SimpleFeature feature = SimpleFeatureBuilder.build(featureType, new
Object[]{"Value"},
null);
}
{code}
Basically restrictions are not working, when the ReadonlyAttributeDecorator is
checked by the above filter we are unable to find a PropertyAccessor able to
handle an Attribute.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel