We're updating the issue view to help you get more done. 

JPA specification violation in Query.getParameter(int) in HIbernate 5.2

Description

Query.getParameter(int) is supposed to throw IllegalArgumentException in case no positional parameter is available. As of Hibernate 5.2, its implementation AbstractProducedQuery forwards to ParameterMetadata who's implementation in turn throws a Hibernate specific QueryParameterException from ParameterMetadataImpl.getNamedParameterDescriptor(String).

Environment

None

Status

Assignee

Chris Cranford

Reporter

Oliver Gierke

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.0

Priority

Major