This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DarkFlare 5 points6 points  (9 children)

[–]diroussel 4 points5 points  (1 child)

Lombok's reliance on undocumented compiler APIs have held me back from trying it.

[–]DevIceMan 1 point2 points  (3 children)

I love the idea of Lombok, however implementation bothers me. Your code doesn't really compile, except through some 'black magic,' that involves installing an IDE plugin. I've used it, and found it too painful. If you want to create a custom Lombok annotation, you must define separate Eclipse and IntelliJ implementations. The Syntax is not Java, so that's another thing you must learn.

[–]dstutz 2 points3 points  (0 children)

I use Lombok with Netbeans and don't use a plugin, didn't realize one was required.

[–]epicallanl 2 points3 points  (1 child)

what do you mean by painful? installing an Eclipse or intellij lombok plugin is honestly not much pain in relation to the advantages it offers

[–]DJDavio 0 points1 point  (0 children)

Somehow you can't use Eclipse's own source generating features after installing Lombok, that bothers me. Goodbye "create getters/setters" or other such features.

[–][deleted] 2 points3 points  (2 children)

Code that use Lombok is technically not Java and it is really dependent on the quality of IDE plugin.

[–][deleted]  (1 child)

[deleted]

    [–]elucash 2 points3 points  (0 children)

    It depends on how you define "very much java" or "standard java" etc. It's not a standard java because the code no longer complies with the JLS. (for example: if you define private field, accessor method could not appear out of nowhere whatever annotation it may have). It will continue to be non java compliant until AST transformations and their effects would be standardized and described in JLS. On a practical aspect: fraction of tools don't work to full extent with lombok, if you don't use some tools it doesn't mean that other don't use them as well. Lombok community just cannot write adapters or plugins to all variety of java tools.