Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
Description
info.magnolia.context.WebContextImplTest#testSerializable verifies that WebContextImpl is serializable. While this is all good and well, it turns out that WebContextImpl is NOT serializable if it's been init()'d.
Add the following line:
context.init(null, null, null);
And bang, the test fails:
junit.framework.AssertionFailedError: WebContextImpl should be serializable, failed with: java.io.NotSerializableException: info.magnolia.context.RequestAttributeStrategy
Since all WebContext instances are meant to be initialized before usage, we can conclude WebContextImpl is NOT serializable.
Question is: does it need to be ?
Checklists
Acceptance criteria