Skip to content

Commit cb13cea

Browse files
committed
HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec + HEM boot cleanup (HHH-6159)
1 parent 9ce3afd commit cb13cea

File tree

461 files changed

+6004
-7766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

461 files changed

+6004
-7766
lines changed

hibernate-core/src/main/java/org/hibernate/engine/transaction/internal/TransactionCoordinatorImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public boolean isSynchronizationRegistered() {
159159
@Override
160160
@SuppressWarnings( {"unchecked"})
161161
public boolean isTransactionInProgress() {
162-
return getTransaction().isActive() && getTransaction().getJoinStatus() == JoinStatus.JOINED;
162+
return open && getTransaction().isActive() && getTransaction().getJoinStatus() == JoinStatus.JOINED;
163163
}
164164

165165
@Override

hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static int[] join(int[] x, int[] y) {
188188
}
189189

190190
@SuppressWarnings( {"unchecked"})
191-
public static <T> T[] join(T[] x, T[] y) {
191+
public static <T> T[] join(T[] x, T... y) {
192192
T[] result = (T[]) Array.newInstance( x.getClass().getComponentType(), x.length + y.length );
193193
System.arraycopy( x, 0, result, 0, x.length );
194194
System.arraycopy( y, 0, result, x.length, y.length );
@@ -372,8 +372,6 @@ public static boolean isEquals(byte[] b1, byte[] b2) {
372372
}
373373
return true;
374374
}
375-
376-
377375
}
378376

379377

hibernate-entitymanager/hibernate-entitymanager.gradle

+13
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,16 @@ task copyBundleResources (type: Copy) {
7171
}
7272
processTestResources.dependsOn copyBundleResources
7373

74+
// create an artifact configuration composed of the test classes so that envers can access hem test classes
75+
task testJar(type: Jar, dependsOn: testClasses) {
76+
classifier = 'test'
77+
from sourceSets.test.classes
78+
}
79+
80+
configurations {
81+
tests
82+
}
83+
84+
artifacts {
85+
tests testJar
86+
}

0 commit comments

Comments
 (0)