We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7114ce commit 4508d2fCopy full SHA for 4508d2f
hibernate-core/src/main/java/org/hibernate/bytecode/internal/BytecodeProviderInitiator.java
@@ -61,7 +61,11 @@ public Class<BytecodeProvider> getServiceInitiated() {
61
62
@Internal
63
public static BytecodeProvider buildDefaultBytecodeProvider() {
64
- return getBytecodeProvider( ServiceLoader.load( BytecodeProvider.class ) );
+ // Use BytecodeProvider's ClassLoader to ensure we can find the service
65
+ return getBytecodeProvider( ServiceLoader.load(
66
+ BytecodeProvider.class,
67
+ BytecodeProvider.class.getClassLoader()
68
+ ) );
69
}
70
71
0 commit comments