This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236238 - Lombok annotated methods are not detected
Summary: Lombok annotated methods are not detected
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-09-22 08:54 UTC by dynamite
Modified: 2013-09-24 06:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2013-09-22 08:54:11 UTC
I have a maven project that uses Lombok (http://projectlombok.org/) to annotate classes.  This provides getters, setters, equals/hashCode, toString etc.  In 7.3.1 this worked just find out of the box.  Now my source code is littered with errors as lombok no longer seems to get loaded.

For me this is high priority as it will definitely prevent me from using 7.4.  For now I will have to revert to 7.3.1
Comment 1 Milos Kleint 2013-09-23 08:22:45 UTC
from what I understood the problem is on lombok's side which doesn't work with the version of javac binaries that we embed in the IDE. jlahoda: correct?
Comment 2 Antonin Nebuzelsky 2013-09-23 13:43:25 UTC
Svato, could you comment?
Comment 3 Jan Lahoda 2013-09-24 06:38:29 UTC
Unfortunately, Lombok is depending on a lot of javac implementation details, and these details are generally changing between JDK versions. So when we upgraded to JDK8 javac, the old(-er) versions of Lombok which do not support JDK8 cease to work. I don't think there is much that could be done on the NetBeans side - we can't stay on JDK7 version because we would loose JDK8 support in the editor and we obviously can't revert the internal changes to JDK7 state. So this is mostly something that Lombok developers need to solve.

There is an issue filled for this for Lombok:
http://code.google.com/p/projectlombok/issues/detail?id=451

And based on that issue, it seems there may be some (experimental) build of Lombok supporting NetBeans 7.4.
Comment 4 Milos Kleint 2013-09-24 06:40:11 UTC
thanks, closing as wontfix