summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-05-03 11:26:09 +0200
committergjoranv <gv@oath.com>2018-05-03 11:26:09 +0200
commit8153c4958c98de41574e034c69469ced9947eee1 (patch)
tree0fad411ef1b29bb1c9a6e4736eba7533054a7419 /config
parentb07d09bb715f3d2749809611cac0f2ff494bccb6 (diff)
Catch ReflectiveOperationException instead of subclasses.
Diffstat (limited to 'config')
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/buildergen/LazyConfigCompiler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/buildergen/LazyConfigCompiler.java b/config/src/main/java/com/yahoo/vespa/config/buildergen/LazyConfigCompiler.java
index 634b23e3e1b..1d3cac46f2c 100644
--- a/config/src/main/java/com/yahoo/vespa/config/buildergen/LazyConfigCompiler.java
+++ b/config/src/main/java/com/yahoo/vespa/config/buildergen/LazyConfigCompiler.java
@@ -78,8 +78,7 @@ public class LazyConfigCompiler implements ConfigCompiler {
try {
Class<BUILDER> clazz = (Class<BUILDER>) classLoader.<BUILDER>loadClass(builderClassUrl);
return clazz.getDeclaredConstructor().newInstance();
- } catch (ClassNotFoundException | IllegalAccessException | InstantiationException
- | NoSuchMethodException | InvocationTargetException e) {
+ } catch (ReflectiveOperationException e) {
throw new RuntimeException("Error creating new instance of '" + builderClassUrl + "'", e);
}
}