Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.2
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Environment:JDK 1.4
-
Number of attachments :
Description
The following testcase should pass, but it fails with a PicoVerificationException.
public static class MockRunnable implements Runnable{
public void run() {
}
}
public static class OtherRunnable implements Runnable{
public void run() {
}
}
public static class MockRunner{
private final Runnable[] _runners;
public MockRunner(Runnable[] runnable)
}
public void testArrayDependenciesAndVerification()
{ DefaultPicoContainer container = new DefaultPicoContainer(); container.registerComponentImplementation(MockRunnable.class); container.registerComponentImplementation(OtherRunnable.class); container.registerComponentImplementation(MockRunner.class); //this will fail to resolve the Runnable array on the MockRunner VerifyingVisitor visitor = new VerifyingVisitor(); visitor.traverse(container); container.start(); assertNotNull(container.getComponentInstanceOfType(MockRunner.class)); }Activity
Jörg Schaible
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Joerg Schaible [ joehni ] |
Jörg Schaible
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.2 [ 11330 ] | |
Resolution | Fixed [ 1 ] |
Fixed in CVS. Thanks for test case.