Pawel Veselov created OPENJPA-2732: -------------------------------------- Summary: 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
>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 (v7.6.3#76005)