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
Rafal Krzewski
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | CachingComponentAdapterFactoryTest.diff [ 11105 ] |
Rafal Krzewski
made changes -
Attachment | CachingComponentAdapterFactory.diff [ 11106 ] |
Rafal Krzewski
made changes -
Attachment | CachingComponentAdapterFactory2.diff [ 11154 ] |
Aslak Hellesøy
made changes -
Assignee | Aslak Hellesoy [ rinkrank ] |
Aslak Hellesøy
made changes -
Fix Version/s | 1.0 [ 10145 ] |
Paul Hammant
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Aslak Hellesøy
made changes -
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Aslak Hellesøy
made changes -
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.