Community
Participate
Working Groups
Build Identifier: 20110615-0604 If an ECore model contains java.util.Date types, the ODA driver throws java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Date at org.eclipse.emf.oda.ecore.impl.ResultSet.getDate(ResultSet.java:398) Reproducible: Always Steps to Reproduce: 1. Create a ECore model and instance that contains java.util.Date types 2. Use model instance as ECore DataSource and create a New ECore DataSet with query to return a column(s) with the Date type. 3. From the DataSet Editor Preview Results
Created attachment 202570 [details] Checks for date types and converts java.util.Date to java.sql.Date This patch seems to fix it for me.
The fix has been committed to CVS (head and maintenance). Builds will be made available early next week.
Builds containing this fix are now available at http://www.eclipse.org/modeling/emf/downloads/?project=emf and in the following update sites: HEAD (2.8.0) http://download.eclipse.org/modeling/emf/emf/updates/2.8-I-builds/ Maintenance (2.7.1) http://download.eclipse.org/modeling/emf/emf/updates/2.7.x/
(In reply to comment #3) > Builds containing this fix are now available at > http://www.eclipse.org/modeling/emf/downloads/?project=emf Don't find the oda features in the M201109050916 (2011/09/05) 2.7.x Maintenance Build, where I would have expected it to be. > and in the following > update sites: > > HEAD (2.8.0) > http://download.eclipse.org/modeling/emf/emf/updates/2.8-I-builds/ > > Maintenance (2.7.1) > http://download.eclipse.org/modeling/emf/emf/updates/2.7.x/ But do see it is in the 2.7.1 Maintenance update site.
(In reply to comment #4) > Don't find the oda features in the M201109050916 (2011/09/05) 2.7.x Maintenance > Build, where I would have expected it to be. Sorry, you're right, the ODA SDK isn't currently included in the legacy downloads, other than as part of the "all-in-one update site" archive, from which you could install the features locally if you wanted. The expectation is that consumers should be transitioning to the (hosted) update site if they haven't already...