diff --git a/gradle/libraries.gradle b/gradle/libraries.gradle index e57978ea96..d0c2510fbc 100644 --- a/gradle/libraries.gradle +++ b/gradle/libraries.gradle @@ -28,7 +28,7 @@ ext { jakartaWeldVersion = '4.0.1.SP1' javassistVersion = '3.27.0-GA' - byteBuddyVersion = '1.11.8' + byteBuddyVersion = '1.11.12' agroalVersion = '1.9' diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java index 42f29e5dc0..c1ca817ce8 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcCoordinatorImpl.java @@ -247,8 +247,9 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator { @Override public void afterStatementExecution() { - LOG.tracev( "Starting after statement execution processing [{0}]", getConnectionReleaseMode() ); - if ( getConnectionReleaseMode() == ConnectionReleaseMode.AFTER_STATEMENT ) { + final ConnectionReleaseMode connectionReleaseMode = getConnectionReleaseMode(); + LOG.tracev( "Starting after statement execution processing [{0}]", connectionReleaseMode ); + if ( connectionReleaseMode == ConnectionReleaseMode.AFTER_STATEMENT ) { if ( ! releasesEnabled ) { LOG.debug( "Skipping aggressive release due to manual disabling" ); return;