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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.