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 255765 - Lombok @AllArgsConstructor broken 8.1 RC
Summary: Lombok @AllArgsConstructor broken 8.1 RC
Status: CLOSED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-07 10:51 UTC by rjdkolb
Modified: 2015-10-12 05:37 UTC (History)
0 users

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 rjdkolb 2015-10-07 10:51:41 UTC
Hello,

I've been using Lombok with Netbeans for a long time.
Lombok @AllArgsConstructor was working in NB 8.1 DEV

Now in RC 1 it is broken

The IDE seems to pick up the AllArgsConstructor, but in Maven it's broken.
I think the agent is not activated.

Can you please please have a look at this :
https://github.com/rjdkolb/lombok

thanks


--- maven-compiler-plugin:2.3.2:compile (default-compile) @ lombok ---
Compiling 2 source files to /home/richard/src/lombok/target/classes
-------------------------------------------------------------
COMPILATION ERROR : 
-------------------------------------------------------------
io/r3k/lombok/App.java:[5,19] error: constructor MyBean in class MyBean cannot be applied to given types;
 actual and formal argument lists differ in length
io/r3k/lombok/App.java:[6,9] error: cannot find symbol
 variable b of type MyBean
io/r3k/lombok/App.java:[7,9] error: cannot find symbol
3 errors
Comment 1 Tomas Stupka 2015-10-07 15:12:37 UTC
no idea how lombok works, but this fails also when compiling from the command line via
$ mvn clean install

if this worked for you in any way with some previous version/build of netbeans, please provide more info about the build and if necessary also any additional steps

thanks
Comment 2 rjdkolb 2015-10-07 15:36:33 UTC
Apologies Tomas.
I see the 1.16.x is broken in 8.0.2 as well.

changing to 1.14.8 works correctly.
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.14.8</version>
        </dependency>

FYI Lombok works well in Netbeans and have been using it in prod for years (besides this issue)
https://projectlombok.org/features/Data.html
https://projectlombok.org/features/Log.html

Making invalid because I think this is a Lombok issue.

thanks
Comment 3 rjdkolb 2015-10-12 05:37:56 UTC
FYI:
Switching to Maven 3.3.3 in Netbeans 8.1 RC1 works perfectly.