Java generated code - compilation error

21 views
Skip to first unread message

kurr...@gmail.com

unread,
Oct 30, 2017, 6:09:48 AM10/30/17
to grpc.io
Hello
I am just starting with grpc, so please forgive my ignorance. Im sure my issue is probably something very basic.

I have written a service and messages in proto, and it appears to be valid. However when I generate the java, the XXXGrpc.java files have a compilation error to do with 
@java.lang.Override

For example:


In order to implement my client, I end up having to remove the override annotations - which doesnt seem like the right thing to do.

My question therefore is, what am I doing wrong? How am I supposed to write a java client, using the generated java code, without having to modify the generated java code?

Thanks

Carl Mastrangelo

unread,
Oct 30, 2017, 8:19:37 PM10/30/17
to grpc.io
What version of gRPC are you using?

kurr...@gmail.com

unread,
Oct 30, 2017, 8:25:55 PM10/30/17
to grpc.io
Im using grpc 1.6.0.

I found the problem. In Eclipse I had the java project set to java version 1.5.

When I changed this to 1.8 the compilation error disappeared. 

Thanks
Reply all
Reply to author
Forward
0 new messages