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 192416

Summary: [70cat] Extract superclass refactoring generates non compilable code
Product: java Reporter: Michel Graciano <hmichel>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: VERIFIED FIXED    
Severity: normal CC: misterm
Priority: P4    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Michel Graciano 2010-11-24 16:19:49 UTC
[ BUILD # : 03c621343d68 ]
[ JDK VERSION : 1.6.20 ]

To reproduce it do as follow:
1. Create a new Java project;
2. Create a class as follow
public class Main {
    private String abc;
    public String getAbc() {
        return abc;
    }
    public void setAbc(String abc) {
        this.abc = abc;
    }
}
3. Call Refactor > Extract Superclass... and select all methods and confirm;

The problem is that abc field is not moved. And if the field is used it should
be moved with the protected modifier.
Comment 1 Martin Balin 2016-07-07 07:18:51 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 2 Michel Graciano 2016-07-09 01:16:05 UTC
Product Version: NetBeans IDE Dev (Build 20160702-f301c59e849c)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14