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 242920

Summary: Refactoring is broken for classes using project lombok
Product: editor Reporter: thpe
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description thpe 2014-03-15 10:36:52 UTC
The following refactoring actions are broken if a class uses a lombok annotation: 
* rename of a class
* rename of a variable
* change of method parameters

I didn't tried the remainder of the refactorings. 


Tested with: 
* Netbeans 8.0 RC1
* Lombok 1.12.4

Steps to reproduce: 
* File =>New Project => Maven => new Java Application
* Modify Pom with the following dependency

<dependency>
  <groupId>org.projectlombok</groupId>
  <artifactId>lombok</artifactId>
  <version>1.12.4</version>
</dependency>

* Create a Pojo, use for example the @Data Annotation (applies for all lombok annotations so far)
* hit refactoring

Usually it doubles the class and sometimes the refactored and unrefactored parts of the class are tangled and messed up. 

a related Bug report in lombok can be found at https://code.google.com/p/projectlombok/issues/detail?id=106
Comment 1 thpe 2014-03-15 14:05:00 UTC

*** This bug has been marked as a duplicate of bug 236885 ***