Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-RC-1
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
In the buildContainer method of LifeCycleContainerBuilder the incomming parentContainer is casted to a MutablePicoContainer without checking the type.
If a non PicoContainer instance is passed as a parent a ClassCastException occurs.
A test should take place if the parent is a MutablePicoContainer to avoid this class cast exception.
Activity
Maarten Grootendorst
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | NonMutablePicoContainerContainerTestCase.java [ 11630 ] |
Maarten Grootendorst
made changes -
Attachment | LifecycleContainerBuilder.java [ 11631 ] |
Aslak Hellesøy
made changes -
Assignee | Aslak Hellesoy [ rinkrank ] | |
Fix Version/s | 1.0-RC-1 [ 10461 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
What should the Builder do? What should be thrown?