[
https://issues.apache.org/jira/browse/OPENJPA-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla resolved OPENJPA-2637.
--------------------------------------
Resolution: Fixed
Already fixed on master: 7eba99b9d (on master) made
FillStrategy.NewInstance.findConstructor retry with Filters.unwrap'ed primitive
types, so Long(long) is found for [Long] (FillStrategy.java:121-131).
countDistinct is exercised in TestTypesafeCriteria.java:1561. Closing; please
reopen if this still happens with OpenJPA 4.x.
> Invalid query syntax
> --------------------
>
> Key: OPENJPA-2637
> URL: https://issues.apache.org/jira/browse/OPENJPA-2637
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Reporter: John D. Ament
> Assignee: Mark Struberg
> Priority: Major
>
> DeltaSpike's started seeing a query failure when testing against TomEE 7 M3.
> The test result can be seen here:
> https://builds.apache.org/job/DeltaSpike_TomEE_7.0.0-M3/140/org.apache.deltaspike.modules$deltaspike-data-module-impl/testReport/org.apache.deltaspike.data.impl.criteria/CriteriaTest/should_create_count_criteria/
> The query generated looks something like
> {code}
> select count(distinct e.name) from Simple e where e.name = ?
> {code}
> OpenJPA seems to be trying to convert the long into a long via constructor
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)