HHH-17705 Load default bytecode provider using the correct ClassLoader
This commit is contained in:
parent
cd391b7359
commit
4226cf2c02
|
@ -58,7 +58,11 @@ public final class BytecodeProviderInitiator implements StandardServiceInitiator
|
|||
|
||||
@Internal
|
||||
public static BytecodeProvider buildDefaultBytecodeProvider() {
|
||||
return getBytecodeProvider( ServiceLoader.load( BytecodeProvider.class ) );
|
||||
// Use BytecodeProvider's ClassLoader to ensure we can find the service
|
||||
return getBytecodeProvider( ServiceLoader.load(
|
||||
BytecodeProvider.class,
|
||||
BytecodeProvider.class.getClassLoader()
|
||||
) );
|
||||
}
|
||||
|
||||
@Internal
|
||||
|
|
Loading…
Reference in New Issue