From ef79d63544dff80817bec6759a50acf0f81f99c4 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 14 Sep 2013 11:23:44 -0700 Subject: [PATCH] Fix #40: extra catch block in BeanDefinitionLoader --- .../java/org/springframework/boot/BeanDefinitionLoader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java b/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java index b97234637e..ea85a32e05 100644 --- a/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java +++ b/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java @@ -161,6 +161,9 @@ class BeanDefinitionLoader { try { return load(ClassUtils.forName(resolvedSource, null)); } + catch (IllegalArgumentException ex) { + // swallow exception and continue + } catch (ClassNotFoundException ex) { // swallow exception and continue }