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 254789 - [81cat] Convert anonymous to member doesn't restore the class name when redo is pressed.
Summary: [81cat] Convert anonymous to member doesn't restore the class name when redo ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-27 15:33 UTC by -Silver-
Modified: 2015-08-28 13:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (724.58 KB, text/plain)
2015-08-27 15:33 UTC, -Silver-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2015-08-27 15:33:10 UTC
Product Version = NetBeans IDE Dev (Build 201508260002)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_66-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b02

Test case: http://services.netbeans.org/synergy/client/app/#/assignment/1495/v/1
Convert Anonymous to Member 
Test I.

1. Follow all the steps of the test till 4 (included).
At this point a new class called MyListener should be created.
2. Press Undo one time class MyListener is correctly renamed to MouseListenerImpl (the default name)
3. Press Undo one more time the anonymous class is restored.
4. Press Redo one time anonymous is again coverted to class MouseListenerImpl

At this point it is not possible to press Redo again to rename MouseListenerImpl to MyListener
Comment 1 -Silver- 2015-08-27 15:33:24 UTC
Created attachment 155701 [details]
IDE log
Comment 2 Milutin Kristofic 2015-08-28 13:13:08 UTC
I am not sure, if this is intended or not. Sending to refactoring for evaluation.