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 - [70cat] Extract superclass refactoring generates non compilable code
Summary: [70cat] Extract superclass refactoring generates non compilable code
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 16:19 UTC by Michel Graciano
Modified: 2016-07-09 01:16 UTC (History)
1 user (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 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