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 342ca85 commit 0a41fa4Copy full SHA for 0a41fa4
hibernate-core/src/main/java/org/hibernate/bytecode/internal/BytecodeProviderInitiator.java
@@ -58,7 +58,11 @@ public Class<BytecodeProvider> getServiceInitiated() {
58
59
@Internal
60
public static BytecodeProvider buildDefaultBytecodeProvider() {
61
- return getBytecodeProvider( ServiceLoader.load( BytecodeProvider.class ) );
+ // Use BytecodeProvider's ClassLoader to ensure we can find the service
62
+ return getBytecodeProvider( ServiceLoader.load(
63
+ BytecodeProvider.class,
64
+ BytecodeProvider.class.getClassLoader()
65
+ ) );
66
}
67
68
0 commit comments