HHH-8441 Hibernate is trying to add values to an Immutable List
This commit is contained in:
parent
860c1fdab7
commit
0fbbcd782b
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue