Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-5
-
Fix Version/s: 1.0-beta-3
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Environment:.
-
Number of attachments :
Description
as discussed in the mailing list. As soon as there is a container hierachy the whole picocontainer isnt serializable anymore.
package pico;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.defaults.DefaultPicoContainer;
import org.picocontainer.tck.AbstractPicoContainerTestCase;
import org.picocontainer.testmodel.DependsOnTouchable;
import org.picocontainer.testmodel.SimpleTouchable;
import org.picocontainer.testmodel.Touchable;
public class ContainerTreeSerialization extends AbstractPicoContainerTestCase
{
protected MutablePicoContainer createPicoContainer()
}
....E..............
Time: 0,36
There was 1 error:
1) testSerializabilityOfContainer(pico.ContainerTreeSerialization)java.io.NotSerializableException: java.lang.ref.WeakReference
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.util.ArrayList.writeObject(ArrayList.java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at ...
org.picocontainer.tck.AbstractPicoContainerTestCase.testSerializabilityOfContainer(AbstractPicoContainerTestCase.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12)
FAILURES!!!
Tests run: 18, Failures: 0, Errors: 1
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Aslak Hellesoy [ rinkrank ] |
Fix Version/s | 1.0.1 [ 10307 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Fix Version/s | 1.0.1 [ 10307 ] | |
Fix Version/s | 1.0-beta-3 [ 10232 ] |
Status | Reopened [ 4 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Thanks Thomas