-
Notifications
You must be signed in to change notification settings - Fork 86
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
Nested generics don't compile properly #110
Comments
Hm... that example seems to work for me. Are you sure that you are using the latest version of the |
This is with the following setup in Maven:
Compiling is all done via |
Ah, looks like you are using https://github.com/expretio/capnp-maven-plugin, which has not been kept up to date with recent releases. You could open an issue on that repo to request an update. (I'm not sure whether it's being actively maintained.) Meanwhile, you're probably going to need to install What I'd like to do eventually is rewrite capnpc-java in Java, to avoid this kind of distribution problem. I opened #111 to track that issue. |
My guess is that capnp-maven-plugin does not include this fix: 7da1dc8 |
Thanks for this. I can confirm that the schema compiles correctly with the latest version of I am happy for you to close this issue if you want. |
The following code doesn't compile in capnp java v0.1.9:
It gets errors like
The code compiles correctly in the C++ capnp. Note that the
Map
implementation is copied directly from https://capnproto.org/language.html#generic-types , so this should work.I think it's the nested generics causing trouble, e.g. this works:
Using
:Map(Text, Text)
, or movingEntry
to be a top level struct (i.e. moving it outside ofMap
) still fail.The text was updated successfully, but these errors were encountered: