On Fri, 9 Mar 2018 16:11:23 -0500
cowwoc <[email protected]> wrote:

> I gave up using Lombok with JDK 9 months ago. Yes, it is far more 
> unstable under Netbeans than with other IDEs but it is generally a
> mess under JDK9 regardless of which IDE you use.

I am not a fan of Lombok either. 

I reported a build issue under 9, and their recommendation was to use
ant to build it...
https://github.com/rzwitserloot/lombok/issues/1562#issuecomment-363549169

Which I fail to see how that would solve the issue.

src/core/lombok/javac/apt/Javac9BaseFileObjectWrapper.java:38: error:
Javac9BaseFileObjectWrapper is not abstract and does not override
abstract method getSibling(String) in PathFileObject
class Javac9BaseFileObjectWrapper extends
com.sun.tools.javac.file.PathFileObject {

Compiler errors like that are not resolved by ant/maven/gradle. Unless
they are doing something I could as well, modifying files, options,
etc. I run into stuff like that a lot and requires code fixes. I do not
believe they implemented that class properly in the first place.
Something is very odd there per my comments and attempts to fix.
https://github.com/rzwitserloot/lombok/issues/1562

I have filed another issue with byte-buddy to eventually move away from
Lombok. It requires a massive amount of Eclipse to build from source.
If your building Netbeans from source. You end up with a lot of Eclipse
dependencies, just because of Lombok.
https://github.com/raphw/byte-buddy/issues/397
https://github.com/apache/incubator-netbeans/blob/master/spi.java.hints/nbproject/project.properties#L24

I was able to switch over to Google AutoValue in byte-buddy for
Netbeans 9 using sed in a crude manner.
https://github.com/Obsidian-StudiosInc/os-xtoo/blob/master/dev-java/byte-buddy-dep/byte-buddy-dep-9999.ebuild#L47

Not sure if that was successful or not. It allows byte-buddy to build,
and I can build the pieces of Netbeans that need byte-buddy, like
spi-java-hints. If it works at runtime I cannot confirm 100% yet. But I
haven't seen any issues just the same.
https://github.com/Obsidian-StudiosInc/os-xtoo/blob/master/nb-ide/netbeans-spi-java-hints/netbeans-spi-java-hints-9999.ebuild#L9

Sent a PR to byte-buddy, but since they want to keep legacy support and
AutoValue is 8+, they have to keep Lombok.
https://github.com/raphw/byte-buddy/pull/400#issuecomment-361006248

-- 
William L. Thomson Jr.

Attachment: pgp_Gasar9pt2.pgp
Description: OpenPGP digital signature

Reply via email to