Skip to content

Commit e30abe1

Browse files
mbelladebeikov
authored andcommitted
HHH-14707 Fix xml embeddable aggregate array support
1 parent b655701 commit e30abe1

File tree

1 file changed

+2
-2
lines changed
  • hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/XmlHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ else if ( !string.startsWith( COLLECTION_START_TAG ) || !string.endsWith( COLLEC
335335
final ArrayList<Object> arrayList = new ArrayList<>();
336336
final int end = fromArrayString(
337337
string,
338-
false,
338+
true,
339339
options,
340340
COLLECTION_START_TAG.length(),
341341
arrayList,
@@ -646,7 +646,7 @@ private static int fromArrayString(
646646
else {
647647
arrayList.add( array );
648648
}
649-
i = end + 1;
649+
i = end;
650650
}
651651
else {
652652
throw new IllegalArgumentException( "XML not properly formed: " + string.substring( start ) );

0 commit comments

Comments
 (0)