From 80e591f064e879edbbae6debe739985a529b30a5 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 14 Jun 2016 18:33:52 +0100 Subject: [PATCH] HHH-10341 - Fix Specification violation in Implementation of TupleElement (cherry picked from commit 04f1fcc762377200295b2e6dd316b06a944d219e) --- .../java/org/hibernate/hql/internal/ast/tree/SelectClause.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/SelectClause.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/SelectClause.java index 53bf6b8043..984bf46ba2 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/SelectClause.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/SelectClause.java @@ -393,8 +393,7 @@ public class SelectClause extends SelectExpressionList { if ( aggregatedSelectExpression == null ) { aliases = new String[selectExpressions.length]; for ( int i = 0; i < selectExpressions.length; i++ ) { - String alias = selectExpressions[i].getAlias(); - aliases[i] = alias == null ? Integer.toString( i ) : alias; + aliases[i] = selectExpressions[i].getAlias(); } } else {