From 4d301b17267427b31b766550d18642c94e9c853a Mon Sep 17 00:00:00 2001 From: Malcolm Taylor Date: Tue, 2 Apr 2019 08:45:26 +0100 Subject: [PATCH] HHH-13303 Fix error message --- .../persister/entity/JoinedSubclassEntityPersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java index b387d1860f..8f98e5e3c5 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java @@ -1094,7 +1094,7 @@ public class JoinedSubclassEntityPersister extends AbstractEntityPersister { if ( index >= subclassNamesBySubclassTable.length ) { throw new IllegalArgumentException( - "Given subclass table number is outside expected range [" + subclassNamesBySubclassTable.length + "Given subclass table number is outside expected range [" + (subclassNamesBySubclassTable.length -1) + "] as defined by subclassTableNameClosure/subclassClosure" ); }