Skip to content

InputModule#getRaw() expects a root node, even though a string node should also be acceptable #14

@fschopp

Description

@fschopp

RuntimeInputModule#getRaw() returns a RuntimeSerializationRoot instance, even though RuntimeInputModule#getObject() could return a String, in which case the most appropriate tree representation would be a RuntimeSerializedString node.

Currently, String instances passed to Linker#marshalToTree are therefore marshaled into a RuntimeSerializationRoot instance. More specifically, TreeBuilderImpl#shouldMarshal contains level == 0 as one of the conditions under which true is returned.

The best fix may be to fit the interfaces into the MarshalingTreeNode hierarchy.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions