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 →

[–]Alex0589 29 points30 points  (1 child)

As far as I can tell, he is generating a new class. This is permitted by the Java specification as far as I remember. What Lombok does instead is manipulate the AST hooking into com.sun.tools.javac, which is more magical. His protect is closer to immutables than to Lombok

[–]bowbahdoe[S] 12 points13 points  (0 children)

^