Skip to content

Commit a6a588e

Browse files
thefirstofthe300frantuma
authored andcommitted
fix: Add class loader to OpenAPIExtensions ServiceLoader
1 parent 3fcc473 commit a6a588e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-jaxrs2/src/main/java/io/swagger/v3/jaxrs2/ext/OpenAPIExtensions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static Iterator<OpenAPIExtension> chain() {
2828

2929
static {
3030
extensions = new ArrayList<>();
31-
ServiceLoader<OpenAPIExtension> loader = ServiceLoader.load(OpenAPIExtension.class);
31+
ServiceLoader<OpenAPIExtension> loader = ServiceLoader.load(OpenAPIExtension.class, OpenAPIExtensions.class.getClassLoader());
3232
for (OpenAPIExtension ext : loader) {
3333
LOGGER.debug("adding extension {}", ext);
3434
extensions.add(ext);

0 commit comments

Comments
 (0)