Lombok is related to Java 8

I just upgraded to IntelliJ idea 14 and Java 8. I also want to upgrade my project to Java version 8 and start using some new features But after configuring IntelliJ correctly to use Java 8, I still encountered Lombok's problem It seems that there is a conflict between Java 8 and Lombok, because my @ getter and @ setter annotations no longer work

The Lombok version is 1.10 8. Any suggestions?

Solution

Short answer:

Lombok supports Java 8, since version 1.12 Java 8.0 has been supported since 2

The answer is long

Lombok supports Java 8 and has been running since version 1.12 2 (October 10, 2013) has been supported according to changelog:

Since then, further Java 8 support has been implemented:

> v1. 12.6 (March 6, 2014)

> v1. 14.0 "branch Cobra" (May 27, 2014)

> v1. 14.6 (September 2, 2014)

In other words, the latest version of Lombok should be able to use Java 8 well from version 1.12 From 2, Java 8 code without new language functions should work

Editor: as roel pointed out, the current (January 8, 2015) open bug specifies a specific Lombok function (VAL) to stop working 1.14 eight

This error was closed on November 16, 2015

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>