[
http://issues.ops4j.org/jira/browse/QI-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11789#action_11789
]
Rickard Öberg commented on QI-137:
----------------------------------
The proper way to handle this is that serialization should only store state,
not the mixins, and then the properties should be repopulated before
instantiation.
> Exception thrown when deserializing immutable property + constraints.
> ---------------------------------------------------------------------
>
> Key: QI-137
> URL: http://issues.ops4j.org/jira/browse/QI-137
> Project: Qi4j
> Issue Type: Bug
> Affects Versions: 0.4
> Reporter: Edward Yakop
> Assignee: Rickard Öberg
> Priority: Critical
>
> Test case:
> org.qi4j.spi.serialization.CompositeSerializationTest#testDeserialization()
> Remove @Ignore to run the test.
> It seems the problem lies on:
> CompositeInputStream line 61:
> Composite composite = builder.newInstance();
> ( (Qi4jSPI) is ).setMixins( composite, mixins );
> We need to initialize composite state before invoking #newInstance()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev