Long "in" lists in queries results in a Java stack overflow exception.

Description

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.038 sec <<< FAILURE!
testLongInElementsByHQL(org.hibernate.test.criteria.LongInElementsTest) Time elapsed: 2.561 sec <<< ERROR!
java.lang.StackOverflowError
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:391)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at antlr.BaseAST.toStringList(BaseAST.java:341)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)

The same as in https://hibernate.onjira.com/browse/HHH-2166 but in 3.6.8, 3.6.9 build.

Environment

Windows 7 x64, apache-maven-3.0.3, downloaded from github sources

Assignee

Steve Ebersole

Reporter

Vyacheslav

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure