HHH-9823 - org.hibernate.cfg.annotations.SimpleValueBinder#fillSimpleValue incorrectly using HCANN classloading directly

This commit is contained in:
Steve Ebersole 2015-05-27 15:33:12 -05:00
parent 1d8327f8ba
commit 7fba0a00e9
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ public class SimpleValueBinder {
if ( simpleValue.getTypeName() != null && simpleValue.getTypeName().length() > 0
&& simpleValue.getMetadata().getTypeResolver().basic( simpleValue.getTypeName() ) == null ) {
try {
Class typeClass = StandardClassLoaderDelegateImpl.INSTANCE.classForName( simpleValue.getTypeName() );
Class typeClass = buildingContext.getClassLoaderAccess().classForName( simpleValue.getTypeName() );
if ( typeClass != null && DynamicParameterizedType.class.isAssignableFrom( typeClass ) ) {
Properties parameters = simpleValue.getTypeParameters();