Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.0-beta-5
-
Fix Version/s: 1.0-RC-1
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
This test case demonstrates:
import org.picocontainer.defaults.DefaultPicoContainer;
import org.picocontainer.defaults.ConstantParameter;
import org.picocontainer.Parameter;
import junit.framework.TestCase;
public class PicoTestCase extends TestCase {
public void testRegisteringTooManyParametersThrowsNPE() {
// reproduced with pico beta 5
DefaultPicoContainer pico = new DefaultPicoContainer();
pico.registerComponentImplementation(DeleteMe.Component.class, DeleteMe.Component.class, new Parameter[]
{ new ConstantParameter("one") });
System.out.println(pico.getComponentInstance(DeleteMe.Component.class));
}
public static final class Component {
}
}
Activity
Konstantin Pribluda
made changes -
Field | Original Value | New Value |
---|---|---|
Resolution | Cannot Reproduce [ 5 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 1.0-RC-1 [ 10461 ] | |
Assignee | Konstantin Pribluda [ ko5tik ] |
You surely mean too much components?