getReturnTypes() fails on collection filter

Description

Calling getReturnTypes() on a trivial collection filter query fails with

11:34:42,078 ERROR org.hibernate.hql.PARSER - <AST>:0:0: unexpected end of subtree
11:34:42,093 ERROR org.hibernate.hql.PARSER - Invalid path: 'this.date'
11:34:42,093 ERROR org.hibernate.hql.PARSER - left-hand operand of a binary operator was null

The query works fine when getReturnTypes() is not called.

Complete log (using the CVS version) and reproducing application attached.

Environment

Replicable on Hibernate 3.0.5 and the CVS version. Using HSQLDB 1.8.0.

Attachments

Assignee

Unassigned

Reporter

lucian chirita

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure