Usage of the Locale.ROOT constant to convert the hibernate.classloading.tccl_lookup_precedence property correctly

This commit is contained in:
Cédric Tabin 2016-11-23 23:49:35 +01:00 committed by Andrea Boriero
parent 6cae4adabb
commit b38a9f40ac
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.StringTokenizer;
@ -396,7 +397,7 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
if( puProperties != null ) {
final String tcclLookupPrecedence = puProperties.getProperty( org.hibernate.cfg.AvailableSettings.TC_CLASSLOADER );
if( tcclLookupPrecedence != null ) {
bsrBuilder.applyTcclLookupPrecedence( TcclLookupPrecedence.valueOf( tcclLookupPrecedence.toUpperCase() ) );
bsrBuilder.applyTcclLookupPrecedence( TcclLookupPrecedence.valueOf( tcclLookupPrecedence.toUpperCase( Locale.ROOT ) ) );
}
}
}