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 - Refactoring alows me to introduce existing field
Summary: Refactoring alows me to introduce existing field
Status: RESOLVED DUPLICATE of bug 205081
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-25 14:02 UTC by ssazonov
Modified: 2013-07-25 14:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
img_01 (55.32 KB, image/png)
2013-07-25 14:02 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***