Bug #1928
ComponentFactoryBean may keep null instance as valid value
Start date:
07.10.2015
Due date:
% Done:
100%
Estimated time:
origin:
Description
If the load of the bean fails but the resource handle has successfully been retrieved, the component factory bean is in loaded state while no bean has been retrieved:
if (this.rh == null) {
if (logger.isLoggable(Level.FINE)) {
logger.fine("Resolving Component Factory Bean: "+this);
}
if (this.componentName==null) {
throw new IllegalArgumentException("Must specifc componentName in Component Factory Bean");
}
this.getObjectType();
this.rh = IComponentsLookup.INSTANCE.lookup(this.componentName,IResourceHandle.class);
// ...
Updated by Henning Blohm about 9 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset z2-addons:z2-addons-spring|ba35c2ced3a9bd6f85852959849766e6f0d00cc3.