Why Java Codegen Plugin prefer extends than implements?

37 views
Skip to first unread message

Wang Tao

unread,
Nov 1, 2016, 7:10:46 AM11/1/16
to grpc.io
When I use implements I can define gRPC service as a spring bean easily, extends not friendly enough to my spring based app. 

Now I generate my codes with option 'enable_deprecated', this option will be deleted in the future?

Carl Mastrangelo

unread,
Nov 2, 2016, 2:48:58 PM11/2/16
to grpc.io
We extend because it allows us to evolve the API without breaking people.  If it was an interface we would never be able to add any more methods ever.  This is needed for backwards compatibility.

It will be removed, you should work on avoiding use of the interfaces to not be broken in the future.
Reply all
Reply to author
Forward
0 new messages