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 254851 - Test I.
Summary: Test I.
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: API docs (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-30 05:56 UTC by gokumar
Modified: 2015-09-02 11:15 UTC (History)
0 users

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 gokumar 2015-08-30 05:56:24 UTC
Link: http://services.netbeans.org/synergy/client/app/#/case/5159/suite/2035

Product Version: NetBeans IDE Dev (Build 201508240002)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_IN (nb)


1. Open replace_constructor.ClassA.java
2. Put caret into first constructor name public Cla|ssA(int const1, int var1, List<String> list){..} where '|' is a position of caret
3. From main menu select Refactor > Replace Constructor With Builder..., type new Builder Class Name e.g. "replace_constructor.Builder1" and press Preview
4. Inspect all changes (NOTE: constructor is also called from ClassB like new ClassA(10, 5, new ArrayList<String>()); so it should be properly changed as well)
5. Press Refactor

Everything works just fine. 

Now, if I undo using Ctrl+z being in replace_constructor.ClassA.java. I don't see the undo effect. (Undo doesn't work here)

If I undo from replace_constructor.ClassB.java, it affects undo. Why is this behavior? I believe its wrong as I have initiated "Replace Constructor With Builder" action from within replace_constructor.ClassA.java and Undo should take effect from here.
Comment 1 -Silver- 2015-09-02 11:15:43 UTC
Similar issue with:

Product Version: NetBeans IDE Dev (Build 201508310002)
Java: 1.8.0_66-ea; Java HotSpot(TM) 64-Bit Server VM 25.66-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-ea-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)
User directory: D:\Netbeans\8.1dev\usedir
Cache directory: D:\Netbeans\8.1dev\cachedir

In my case I have not undo redo actions when the focus is on the editor. I have to select the files in the projects pane to have undo/redo enabled