[
https://issues.apache.org/jira/browse/OPENJPA-2732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153008#comment-18153008
]
ASF subversion and git services commented on OPENJPA-2732:
----------------------------------------------------------
Commit b9ee4473afa2ead968da73f5926a764c6e993699 in openjpa's branch
refs/heads/OPENJPA-2732 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b9ee4473a ]
[OPENJPA-2732] Report a parameter the query does not declare with its own
message
> Providing extra parameters to a query results in a wrong error message
> ----------------------------------------------------------------------
>
> Key: OPENJPA-2732
> URL: https://issues.apache.org/jira/browse/OPENJPA-2732
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 2.4.2
> Reporter: Pawel Veselov
> Assignee: Richard Zowalla
> Priority: Minor
>
> From openjpa.kernel.QueryImpl.assertParameters():
> {code:java}
> OrderedMap<Object,Class<?>> paramTypes =
> ex.getOrderedParameterTypes(q);
> for (Object actual : params.keySet()) {
> if (!paramTypes.containsKey(actual))
> throw new UserException(_loc.get("unbound-params",
> actual, paramTypes.keySet()));
> }
> {code}
> The error should probably be "extra-params" instead.
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)