[
https://issues.apache.org/jira/browse/OPENJPA-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18075783#comment-18075783
]
ASF subversion and git services commented on OPENJPA-2940:
----------------------------------------------------------
Commit db1af672cebfb38470b6f866087fdfeca6b9fbef in openjpa's branch
refs/heads/OPENJPA-2940-rzo1 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=db1af672c ]
[OPENJPA-2940] Tolerate Calendar<->Date mismatch in SingleFieldManager.proxy
SingleFieldManager.proxy assumed the datastore value for a @Temporal field
always matches the field's declared type. Handler strategies (and some
JDBC driver paths) can return a Calendar for a java.util.Date field or a
Date for a Calendar field, which caused a ClassCastException at runtime
(e.g. TCK StoredProcedureQuery Client1 where a GregorianCalendar proxy
was assigned to an Employee.hireDate Date field).
Coerce between Calendar and Date on store so the proxy receives a value
of the correct type regardless of which the handler produced.
Also fix a copy/paste bug in ProxyManagerImpl.generateAndLoadProxyCalendar
which passed ProxyDate.class as the ancestor class used to resolve the
proxy class loader's package/protection domain.
> Implement Jakarta Persistence 3.2
> ---------------------------------
>
> Key: OPENJPA-2940
> URL: https://issues.apache.org/jira/browse/OPENJPA-2940
> Project: OpenJPA
> Issue Type: Improvement
> Reporter: Paulo Cristovão de Araújo Silva Filho
> Priority: Major
> Attachments: image-2026-03-28-14-55-26-463.png
>
>
> Implement Jakarta Persistence API 3.2 as prescribed by
> [specification|https://jakarta.ee/specifications/persistence/3.2/] and
> required by Jakarta EE 11.
> This change requires JDK17 or higher compatibility and needs considerable
> checks.
> I've already pushed a branch (WIP) without the proper API bump, focusing on
> updating dependencies while keeping the project passing its current tests at
> least in default profile.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)