Catch exception that's thrown on Java 11 and later

See gh-32034
This commit is contained in:
Andy Wilkinson 2022-08-10 08:25:34 +01:00
parent 37833753f8
commit 8e3346c24f

View File

@ -267,7 +267,7 @@ public class FlywayAutoConfiguration {
map.from(properties.isIgnorePendingMigrations()).to(configuration::ignorePendingMigrations);
map.from(properties.isIgnoreFutureMigrations()).to(configuration::ignoreFutureMigrations);
}
catch (BootstrapMethodError ex) {
catch (BootstrapMethodError | NoSuchMethodError ex) {
// Flyway 9+
}
}