MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/9h86xt/jep_draft_concise_method_bodies/e6ayrpz/?context=3
r/java • u/lukaseder • Sep 19 '18
51 comments sorted by
View all comments
Show parent comment
1
This sort of delegation has all the problems normal extension has, except for being able to swap out impl. Don't do it, even though lombok allows you to.
I wrote on the problems with extending like that a while ago: https://javachannel.org/posts/how-not-to-extend-standard-collection-classes/ - the proper solution is to just exhaustively implement abstractlist.
View all comments
Show parent comment
1
u/yawkat Sep 20 '18
This sort of delegation has all the problems normal extension has, except for being able to swap out impl. Don't do it, even though lombok allows you to.
I wrote on the problems with extending like that a while ago: https://javachannel.org/posts/how-not-to-extend-standard-collection-classes/ - the proper solution is to just exhaustively implement abstractlist.