Skip to content

Commit 8e3346c

Browse files
committed
Catch exception that's thrown on Java 11 and later
See gh-32034
1 parent 3783375 commit 8e3346c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private void configureIgnoredMigrations(FluentConfiguration configuration, Flywa
267267
map.from(properties.isIgnorePendingMigrations()).to(configuration::ignorePendingMigrations);
268268
map.from(properties.isIgnoreFutureMigrations()).to(configuration::ignoreFutureMigrations);
269269
}
270-
catch (BootstrapMethodError ex) {
270+
catch (BootstrapMethodError | NoSuchMethodError ex) {
271271
// Flyway 9+
272272
}
273273
}

0 commit comments

Comments
 (0)