[
https://issues.apache.org/jira/browse/IGNITE-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745327#comment-14745327
]
ASF GitHub Bot commented on IGNITE-1491:
----------------------------------------
GitHub user ptupitsyn opened a pull request:
https://github.com/apache/ignite/pull/94
IGNITE-1491 Platform: Implement platform-dependent
PlatformContext.writeAsPortableObjectSafe
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ptupitsyn/ignite ignite-1491
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/94.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #94
----
commit 85d5b1257203d70fdcc1d8dc224fb54a8e2e2311
Author: ptupitsyn <[email protected]>
Date: 2015-09-15T12:01:16Z
IGNITE-1491 Platform: Implement platform-dependent
PlatformContext.writeAsPortableObjectSafe
commit 130ffb8e26251e2dc5e5174d99648eff550e3a20
Author: ptupitsyn <[email protected]>
Date: 2015-09-15T12:02:43Z
IGNITE-1491 Platform: Implement platform-dependent
PlatformContext.writeAsPortableObjectSafe
----
> Platform: Implement platform-dependent
> PlatformContext.writeAsPortableObjectSafe
> --------------------------------------------------------------------------------
>
> Key: IGNITE-1491
> URL: https://issues.apache.org/jira/browse/IGNITE-1491
> Project: Ignite
> Issue Type: Task
> Components: interop
> Affects Versions: ignite-1.5
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Fix For: ignite-1.5
>
>
> Need to have a reusable way to marshal unknown objects to platforms:
> * Write a success flag first
> * Always write as a portable object so that platforms know its length and can
> read in portable mode. Platforms may have different Portables implementations.
> * If an object can't be converted to portable, catch an error, write false
> success flag, and write error class and message as strings
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)