本文介绍了Lombok项目是否支持Java 9?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中使用了Lombok,但我的同事不同意使用它,原因是(来自关于龙目岛文件的争议)

I have used Lombok in my project, but my colleague do not agree to use it, and his reason is (from controversy of lombok documents)

但这是一个非常古老的文档,写于2010年,也许现在已经解决了这个问题,所以我想知道Lombok是否将支持Java 9,并且它是否仍使用非公开API:s?

But it's a very old document written in 2010, maybe now it has resolved the problem, so I want to know if Lombok will support Java 9 and does it still use the non-public API:s?

推荐答案

Lombok项目有一个问题跟踪Java 9支持.从2018年1月9日和版本1.16.20开始,Lombok正式支持Java9.来自更改日志:

The Lombok project has an issue tracking Java 9 support. As of January 9th 2018 and version 1.16.20, Lombok officially supports Java 9. From the changelog:

(目前,它还没有模块,因此您需要将其放在类路径上.谢谢 Tos的回答,它首先提到了这一点.)

(At the moment, it is no module, though, so you need to place it on the class path. Thanks Tos' answer, which first mentioned this.)

这篇关于Lombok项目是否支持Java 9?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 14:51