Gabriel Roldán created GEOT-4141: ------------------------------------ Summary: creating an indexed org.opengis.filter.identity.Version with a negative index leads to the Version being seen as a Date range version Key: GEOT-4141 URL: https://jira.codehaus.org/browse/GEOT-4141 Project: GeoTools Issue Type: Bug Components: opengis Affects Versions: 8.0-M4 Reporter: Gabriel Roldán Assignee: Gabriel Roldán Fix For: 8.0-RC1
{{new Version(-1)}} leads to a date version (i.e. {{version.isDateTime() == true}}) due to how the union works. But, {{new Version(-1)}} is invalid by the (FES 2.0) spec, and so is stated on {{Version.getIndex()}}. So the simplest solution is to throw an {{IllegalArgumentException}} on the index constructor of {{Version}} if it's not a positive integer > 0. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel