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 239359 - [Convert Anonymous to Member] Undo/Redo doesn't work properly
Summary: [Convert Anonymous to Member] Undo/Redo doesn't work properly
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 255000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-11 12:22 UTC by ssazonov
Modified: 2016-07-07 07:19 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 ssazonov 2013-12-11 12:22:49 UTC
1. Create simple java class:

package test;

import java.util.Arrays;
import java.util.Comparator;

public class ClassA {

    public void m2() {
        int[][] pairs = new int[][]{{125, 24}, {658, 5}, {13, 10}};
        Arrays.sort(pairs, new Comparator<int[]>() {
            @Override
            public int compare(int[] a, int[] b) {
                return a[0] - b[0];
            }
        });
    }
}

2. Right click "Comparator" and from pop-up menu select Refactor > Convert Anonymous to Member...

3. Type new name "aaa" and press Enter

4. Press 4 times Undo for getting the original code like in step (1)

5. Press 4 times Redo for getting the code like in step (3)

>> Redo doesn't rename "ComparatorImpl" to "aaa"

Product Version: NetBeans IDE Dev (Build 201312110002)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Jiri Prox 2015-09-04 09:55:02 UTC
*** Bug 255000 has been marked as a duplicate of this bug. ***
Comment 2 Martin Balin 2016-07-07 07:19:11 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