Open kangarko opened 1 year ago
I stumbled upon same issue. (works with jdk 17, fails on jdk 20)
I've found a fix for that, but it requires upgrading upgrading java.version
to 11. (see attached patch)
176.__upgrade_source_java_to_11.patch
I didn't go deep into the 'why' and I'm not sure how feasible is this change.
The solution is upgrading the Lombok dependency itself, which is suggested in this PR #180, but not merged yet unfortunately. The Java version doesn't matter, in the supplied patch above.
Since Java 20 I am unable to run the delombok plugin.
My pom.xml: https://github.com/kangarko/Foundation/blob/master/pom.xml#L192
Just tested on lombok 1.18.28 and the latest (semi-old) lombok maven plugin.
Here is full maven compile debug log: (I could not find any "var" being used in my project. It's open source: https://github.com/kangarko/foundation/