Skip to content

Commit be61847

Browse files
committed
WELD-2833 Weld#addExtensions should not swallow exception when the extension cannot be instantiated
1 parent a8a6340 commit be61847

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • environments/se/core/src/main/java/org/jboss/weld/environment/se

environments/se/core/src/main/java/org/jboss/weld/environment/se/Weld.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public Weld addExtensions(Class<? extends Extension>... extensionClasses) {
480480
Extension extension = SecurityActions.newInstance(extensionClass);
481481
addExtension(extension);
482482
} catch (Exception ex) {
483-
CommonLogger.LOG.unableToInstantiate(extensionClass, new Object[] {}, ex);
483+
throw CommonLogger.LOG.unableToInstantiate(extensionClass, new Object[] {}, ex);
484484
}
485485
}
486486
return this;

0 commit comments

Comments
 (0)