Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2732

Providing extra parameters to a query results in a wrong error message

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:
      None

      Description

      From openjpa.kernel.QueryImpl.assertParameters():

              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()));
              }
      

      The error should probably be "extra-params" instead.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pveselov Pawel Veselov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: