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 88826

Summary: CC Improvement: replace old variable with new one
Product: java Reporter: Milan Kuchtiak <mkuchtiak>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: CC invokation
CC Result

Description Milan Kuchtiak 2006-11-07 14:48:10 UTC
Currently, when you invoke the CC, e.g., for Math.abs() method argument,

    public int sample() {
        int a1field = -4;
        int a2field = 5;
        return Math.abs(a1field);
    }

 and you select another field, e.g. "a2field", the old variable isn't replaced
by the new one, instead, it is inserted, e.g. :

    public int sample() {
        int a1field = -4;
        int a2field = 5;
        return Math.abs(a2field1field);
    }

Other IDEs automaticaly replace the old value by the new one - selected from CC.

See also the pictures.
Comment 1 Milan Kuchtiak 2006-11-07 14:49:11 UTC
Created attachment 35852 [details]
CC invokation
Comment 2 Milan Kuchtiak 2006-11-07 14:49:31 UTC
Created attachment 35853 [details]
CC Result