Skip to content

Commit 7fba0a0

Browse files
committed
HHH-9823 - org.hibernate.cfg.annotations.SimpleValueBinder#fillSimpleValue incorrectly using HCANN classloading directly
1 parent 1d8327f commit 7fba0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public void fillSimpleValue() {
477477
if ( simpleValue.getTypeName() != null && simpleValue.getTypeName().length() > 0
478478
&& simpleValue.getMetadata().getTypeResolver().basic( simpleValue.getTypeName() ) == null ) {
479479
try {
480-
Class typeClass = StandardClassLoaderDelegateImpl.INSTANCE.classForName( simpleValue.getTypeName() );
480+
Class typeClass = buildingContext.getClassLoaderAccess().classForName( simpleValue.getTypeName() );
481481

482482
if ( typeClass != null && DynamicParameterizedType.class.isAssignableFrom( typeClass ) ) {
483483
Properties parameters = simpleValue.getTypeParameters();

0 commit comments

Comments
 (0)