The Parameter instances created for a JPQL query are inconsistent in terms of that they carry the positional indexes as names:
Query query = em.createQuery("select u from User u where u.firstname like ?1");
Parameter<?> parameter = query.getParameter(1);
assertThat(parameter, is(notNullValue()));
assertThat(parameter.getPosition(), is(1));
assertThat(parameter.getName(), is(nullValue()));
The two last assertions essentially fail as the returned parameter instance carries the name "1" but no index which is inconsistent as I just looked up the parameter through the index.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira