Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data members of Interface by value type not correctly unmarshaled in JavaScript #1271

Closed
pepone opened this issue Apr 8, 2021 · 0 comments · Fixed by #1278
Closed

data members of Interface by value type not correctly unmarshaled in JavaScript #1271

pepone opened this issue Apr 8, 2021 · 0 comments · Fixed by #1278
Assignees
Labels
Milestone

Comments

@pepone
Copy link
Member

pepone commented Apr 8, 2021

// Slice
interface RangerAccessRequest
{
    RangerAccessResource getResource();
}
class RangerAccessResult
{
    RangerAccessRequest request;
}
// JavaScript
Test.RangerAccessResult = class extends Ice.Value
{
    constructor(request = null)
    {
        super();
        this.request = request;
    }

    _iceWriteMemberImpl(ostr)
    {
        ostr.writeValue(this.request);
    }

    _iceReadMemberImpl(istr)
    {
        istr.readValue(obj => this.request = obj, Test.RangerAccessRequest);
    }
};

The generated method for read RangerAccessResult is bogus, it is traying to read an object of type RangerAccessRequest but it should instead try to read an Ice.Value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant