Return to site

The dangers of using #java #lombok

· java
Section image

--Java Zone 2025

Lombok presents the following technical issues:

-🔒 Uses hidden JDK tricks. Those internals are being locked down (JEP 403), so Lombok will need new workarounds.

-⏭️ Upgrades get harder. Moving to new JDK versions can break.

-🧩 Breaks other processors. It changes the AST, so Lombok must run first or others fail.

-🐢 Hurts incremental builds. Its AST tweaks can disable or slow incremental compilation.

What is the AST?
🌳 AST = Abstract Syntax Tree. It’s a tree-shaped model of your code that the compiler/tools use to understand it. Example: for a + b, the AST is a “+” node with children “a” and “b”.