[nanocontainer-scm] [jira] Created: (NANO-118) AspectablePicoContainer's handling of .makeChildContainer() wrong
jira-yCVjj/[email protected] Sun, 6 Feb 2005 11:20:26 -0500 (EST)
| Newsgroups | gmane.comp.java.nanocontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/NANO-118
Here is an overview of the issue:
---------------------------------------------------------------------
Key: NANO-118
Summary: AspectablePicoContainer's handling of .makeChildContainer() wr=
ong
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: NanoContainer
Components:=20
core
Versions:
1.0-beta-3
Assignee:=20
Reporter: Christian Schneider
Created: Sun, 6 Feb 2005 11:19 AM
Updated: Sun, 6 Feb 2005 11:19 AM
Environment: OS: Linux 2.6.8-24.11-default
Java: 1.4.2_06 (Sun)
Description:
I've a PicoContainer instance of the type AspectablePicoContainer (just cal=
l it parentContainer here) of which I'd like to spawn a child container of =
the same type using .makeChildContainer().=20
The javadocs of PicoContainer.makeChildContainer() reads: "Make a child con=
tainer, using the same implementation of MutablePicoContainer as the parent=
." so I think the spawned child-container should be of the parent-container=
's type. But unfortunately the created child container is just a regular De=
faultPicoContainer by its type.
Just use the following code to check
=A0=A0=A0=A0=A0=A0=A0AspectablePicoContainer parentContainer =3D ..... // =
get from somewhere
=A0=A0=A0=A0=A0=A0=A0=A0MutablePicoContainer childContainer =3D parentConta=
iner.makeChildContainer();
=A0=A0=A0=A0=A0=A0=A0=A0parentContainer.addChildContainer(childContainer);
=A0=A0=A0=A0=A0=A0=A0=A0System.out.println((parentContainer instanceof Aspe=
ctablePicoContainer)); =A0//=20
=3D true
=A0=A0=A0=A0=A0=A0=A0=A0System.out.println((childContainer instanceof Aspec=
tablePicoContainer)); // =3D=20
false
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira