Skip to content

Commit 9f75f30

Browse files
olegzmbhave
authored andcommitted
Change call to createClassLoader(URL) from 'super' to 'this'
ExecutableArchiveLauncher.createClassLoader(Iterator) calls createClassLoader(URL) method with 'super'. This means overriding createClassLoader(URL) is not possible without also overriding createClassLoader(Iterator). The switch to 'this' enables that. See gh-20851
1 parent ed9cace commit 9f75f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ExecutableArchiveLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected ClassLoader createClassLoader(Iterator<Archive> archives) throws Excep
8989
if (this.classPathIndex != null) {
9090
urls.addAll(this.classPathIndex.getUrls());
9191
}
92-
return super.createClassLoader(urls.toArray(new URL[0]));
92+
return this.createClassLoader(urls.toArray(new URL[0]));
9393
}
9494

9595
private int guessClassPathSize() {

0 commit comments

Comments
 (0)