Bug #75099 Support java 8 LocalDate for setObject
Submitted: 3 Dec 2014 21:00 Modified: 6 Dec 2014 1:06
Reporter: Konstantinos Liakos Email Updates:
Status: Unsupported Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version: OS:Windows
Assigned to: CPU Architecture:Any
Tags: java 8, LocalDate

[3 Dec 2014 21:00] Konstantinos Liakos
Description:
When you try to do setObject(int parameterIndex, Object x, int targetSqlType), and targetSqlType is Types.DATE, and x is instance of LocalDate, then ClassCastException occurs. It seems that it is always trying to cast to java.util.Date.

Isn't there going to be support for jaba 8 LocalDate?

How to repeat:
Try to do setObject(int parameterIndex, Object x, int targetSqlType) on a preparedStatement, with targetSqlType as Types.DATE, and x as instance of LocalDate.
[6 Dec 2014 1:06] Filipe Silva
Hi Konstantinos,

Thank you for this bug report.

We have no estimates on when or if Connector/J 5.1 will support specific Java 8 types.