Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-5
-
Fix Version/s: 1.0-beta-4
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
CachingComponentAdapterFactory does not override DelegatingComponentAdapterFactory.createComponentAdapter method.
Because of this, the adapters produced by the factory are not CachingComponentAdapter instances, but whatever the underlying factory
produces.
This can be solved by overriding the aforementioned method to return
new CachingComponentAdapter(getDelegate().createComponentAdapter(...))
Note that DelegatingComponentAdapterFactory declares the factory delegate variable as private. A protected accessor method is necessary so that the derived factories may access it.
Activity

Field | Original Value | New Value |
---|---|---|
Attachment | CachingComponentAdapterFactoryTest.diff [ 11105 ] |

Attachment | CachingComponentAdapterFactory.diff [ 11106 ] |

Attachment | CachingComponentAdapterFactory2.diff [ 11154 ] |

Assignee | Aslak Hellesoy [ rinkrank ] |

Fix Version/s | 1.0 [ 10145 ] |

Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |

Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |

Resolution | Fixed [ 1 ] | |
Fix Version/s | 1.0-beta-4 [ 10412 ] | |
Fix Version/s | 1.0 [ 10145 ] | |
Status | Reopened [ 4 ] | Closed [ 6 ] |
A new testcase that exhibits the bug.