FilterCapabilities.support(Filter) does not check the expressions used in the filters -------------------------------------------------------------------------------------
Key: GEOT-1801 URL: http://jira.codehaus.org/browse/GEOT-1801 Project: GeoTools Issue Type: Bug Components: core filter Affects Versions: 2.5-M1, 2.4.2 Reporter: Andrea Aime Fix For: 2.4.3, 2.5-M2 This may lead to declaring a filter as supported when it internally uses a function that's not supported. For example, the following test public void testFunction() throws Exception { PropertyIsEqualTo equal = ff.equal(ff.property("col"), ff.function("abs", ff.literal(5)), false); SQLEncoder encoder = new SQLEncoder(); assertTrue(encoder.getCapabilities().fullySupports(equal)); encoder.encode(equal); } breaks when trying to encode the equal filter, whilst in theory it should break in the assertTrue (the filter is not actually fully supported at all...) -- 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 the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel