HHH-8441 Hibernate is trying to add values to an Immutable List

This commit is contained in:
Brett Meyer 2013-08-15 15:18:59 -04:00
parent 860c1fdab7
commit 0fbbcd782b
1 changed files with 3 additions and 1 deletions

View File

@ -2592,7 +2592,9 @@ public abstract class Loader {
if ( stats ) startTime = System.currentTimeMillis();
try {
final SqlStatementWrapper wrapper = executeQueryStatement( queryParameters, true, Collections.<AfterLoadAction>emptyList(), session );
// Don't use Collections#emptyList() here -- follow on locking potentially adds AfterLoadActions,
// so the list cannot be immutable.
final SqlStatementWrapper wrapper = executeQueryStatement( queryParameters, true, new ArrayList<AfterLoadAction>(), session );
final ResultSet rs = wrapper.getResultSet();
final PreparedStatement st = (PreparedStatement) wrapper.getStatement();