> > Hum, patches committed. Just a quick thought. Since we have that nice > DateUtils class that can deal with ISO formatted dates, I guess we > should fix expression parsing too: it has the advantage of being locale > independent, and it's a standard (I think CQL is using that format too). > > Justin, how is the new filter parser doing when parsing date literals? The xml binding for literal does not try to figure out what the type of the literal is when parsing it. It does not really have enough information to do so. This is why Expression.evaluate( Object, Class ) was added to the expression api. The class gives the type to which the literal should be converted to upon evaluation.
So for dates, literal.evaluate( null, Date.class ) would run through the ConverterFactory extension point looking for something that converts from string to date. There are currently two implementations that can handle date, the first is the one based on apache ConvertUtils which can handle alot of standard data time formats, and another one that uses the jaxb data type parsing stuff to handle "xml" dates. -Justin > > Cheers > Andrea > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > !DSPAM:1004,45eebb4a187351429667743! > -- Justin Deoliveira The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel