Copying AnyPointers between messages in Java

43 views
Skip to first unread message

Vaci

unread,
Nov 4, 2020, 12:46:36 PM11/4/20
to Cap'n Proto
Hi,

is it at all possible to copy AnyPointers between messages in the Java implementation of Capnproto?

The following code doesn't work, because AnyPointer.Factory does not implement SetPointerBuilder...

  AnyPointer.Reader foo;
  AnyPointer.Builder bar;
  bar.setAs(AnyPointer.factory, foo);

The reason I think I need this facility is to implement tail calls in the RPC framework - I'm stuck on trying to copy the results sent by the tail callee into the response of the caller.

Vaci

Vaci

unread,
Nov 9, 2020, 1:15:05 PM11/9/20
to Cap'n Proto

That turned out to be an easy fix, so I've created a pull request...

https://github.com/capnproto/capnproto-java/pull/91

Vaci

Reply all
Reply to author
Forward
0 new messages