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 233432

Summary: Refactoring alows me to introduce existing field
Product: java Reporter: ssazonov
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: img_01

Description ssazonov 2013-07-25 14:02:41 UTC
Created attachment 137803 [details]
img_01

1. Create simple java class:

public class ClassA {
    public void method(){
        String s = "text";
    }
    String text = "text";
}

2. Select "text"

3. Press Alt+Enter > Introduce Field...

4. Fill dialog according attached img_01 and press Ok

-> Without any warning it causes error, see img_01


Product Version: NetBeans IDE Dev (Build 201307242300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b34
System: Linux version 3.8.0-19-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Jiri Prox 2013-07-25 14:07:51 UTC

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