You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mrunit.apache.org by "Jim Donofrio (Commented) (JIRA)" <ji...@apache.org> on 2012/04/17 03:16:18 UTC
[jira] [Commented] (MRUNIT-95) use Serialization framework to
change all set/add input/output methods to serialize, deserialize to do
defensive copying
[ https://issues.apache.org/jira/browse/MRUNIT-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255240#comment-13255240 ]
Jim Donofrio commented on MRUNIT-95:
------------------------------------
changed Serialization class to have a constructor that provides the conf
committed in 1326859
> use Serialization framework to change all set/add input/output methods to serialize, deserialize to do defensive copying
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: MRUNIT-95
> URL: https://issues.apache.org/jira/browse/MRUNIT-95
> Project: MRUnit
> Issue Type: Improvement
> Affects Versions: 0.9.0
> Reporter: Jim Donofrio
> Assignee: Jim Donofrio
> Priority: Minor
> Labels: serialization
> Fix For: 1.0.0
>
>
> Use Serialization framework to change all set/add input/output methods to serialize, deserialize to do defensive copying. This will prevent users from modifying input/expected output objects by accident. The one problem is dealing with custom serializations that require a setting in the conf. Users would have to make sure to set the property in the conf before adding any input/output, this may break some existing test programs. I guess we can just throw a meaningful exception in the add method when we cannot serialize, deserialize.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira