[hibernate/hibernate-orm] 774622: HHH-13576 Invoking tracef() or debugf() w/o an arr...
by Sanne Grinovero
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 77462271156d8eeb595a92aaaebdf6b919f745cc
https://github.com/hibernate/hibernate-orm/commit/77462271156d8eeb595a92a...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
Log Message:
-----------
HHH-13576 Invoking tracef() or debugf() w/o an array of parameters actually allocates an empty Object[]
Commit: e110ab00300107e46af52b98eb1874681d833e0c
https://github.com/hibernate/hibernate-orm/commit/e110ab00300107e46af52b9...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
Log Message:
-----------
HHH-13576 A couple more Logger mistakes in SessionImpl
Commit: 6b489474f58033fe9b52e1c5c866b421c8c4f3e2
https://github.com/hibernate/hibernate-orm/commit/6b489474f58033fe9b52e1c...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/spi/XmlMappingBinderAccess.java
M hibernate-core/src/main/java/org/hibernate/cfg/Settings.java
M hibernate-core/src/main/java/org/hibernate/engine/transaction/jta/platform/internal/JtaPlatformInitiator.java
M hibernate-core/src/main/java/org/hibernate/event/internal/DefaultLoadEventListener.java
M hibernate-core/src/main/java/org/hibernate/event/internal/EntityCopyObserverFactoryInitiator.java
M hibernate-core/src/main/java/org/hibernate/internal/IteratorImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryRegistry.java
M hibernate-core/src/main/java/org/hibernate/sql/ordering/antlr/OrderByFragmentTranslator.java
M hibernate-jipijapa/src/main/java/org/jboss/as/jpa/hibernate5/HibernatePersistenceProviderAdaptor.java
Log Message:
-----------
HHH-13576 Similar debugf and tracef issues found via grepping
Compare: https://github.com/hibernate/hibernate-orm/compare/35037dac7b6e...6b48947...
5 years, 4 months
[hibernate/hibernate-orm] 35037d: HHH-13259 Fix StackOverflowError in StringHelper
by Dmitriy Levin
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 35037dac7b6e080c7d1dae31a64d0d5012b1b40c
https://github.com/hibernate/hibernate-orm/commit/35037dac7b6e080c7d1dae3...
Author: Legohuman <legohuman(a)gmail.com>
Date: 2019-08-14 (Wed, 14 Aug 2019)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/util/StringHelper.java
M hibernate-core/src/test/java/org/hibernate/test/util/StringHelperTest.java
Log Message:
-----------
HHH-13259 Fix StackOverflowError in StringHelper
Before fix method org.hibernate.internal.util.StringHelper#replace
matched placeholders illegally in case when ordinal parameters list was
expanded. Ex. placeholder ?1 was matched with ?11, ?12, ?13 etc. For
queries with 2 or more IN clauses with different collections there were
a situation when ?1 from the first clause matched with already expanded
placeholders from the second collection. Each match led to recursive
call of replace method. If collection in second clause was very long
then StackOverflowError occurred.
Fix adds check of partial placeholder match for wholeWords mode which
is used in expanding list parameters. Partial matches are skipped
during replace.
5 years, 4 months