ClassCastException when filtering on Date values. -------------------------------------------------
Key: GEOT-2278 URL: http://jira.codehaus.org/browse/GEOT-2278 Project: GeoTools Issue Type: Bug Components: data jdbc-ng Affects Versions: 2.5.2 Environment: Java 1.5 Reporter: Karel Maesen When filtering on Date values, the filter passes a java.util.Date object. This is cast (in PreparedStatementSQLDialect) to a java.sql.Timestamp object which results in a ClassCastException. Both java.util.Date and java.sql.Timestamp are registered as Types.TIMESTAMP in class SQLDialect. The switch in method PreparedStatementSQDialect.setValue just assumes that the passed value is a Timestamp instance. -- 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel