Log less frightening message when a plugin's class version is unsupported in the current VM
@@ -144,7 +144,7 @@ public class DependencyInjectingServiceLoader<T> {
String msg = String.format("unable to instantiate '%s', please check descriptor in META-INF", implementation);
throw new ServiceConfigurationError(msg, e);
} catch (UnsupportedClassVersionError e) {
- logger.debug(String.format("unable to instantiate '%s', unsupported class version error: %s", implementation, e.getMessage()));
+ logger.debug("Skipping {} because it only applies to more recent Java versions and the JVM running this app is too old to load it", implementation);
return null;
} catch (Exception e) {
throw new ServiceConfigurationError(e.getMessage(), e);
