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 254531 - Several serious malfunctions when replacing constructor with builder
Summary: Several serious malfunctions when replacing constructor with builder
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 06:26 UTC by stwr
Modified: 2015-09-14 07:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (262.79 KB, text/plain)
2015-08-20 06:26 UTC, stwr
Details
Undo first try (58.72 KB, image/png)
2015-08-20 06:29 UTC, stwr
Details
Undo second try (52.88 KB, image/png)
2015-08-20 06:30 UTC, stwr
Details
Redo first try (48.77 KB, image/png)
2015-08-20 06:30 UTC, stwr
Details
Undo last try - builder not removed (47.61 KB, image/png)
2015-08-20 06:30 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-20 06:26:25 UTC
Product Version = NetBeans IDE Dev (Build 201508190002)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_60-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Test Case --> http://services.netbeans.org/synergy/client/app/#/case/5159/suite/2035/v/1

--My Use Case--
1. Follow steps 1-5 from above test case. Call refactor from main menu!
2. Hit 'Undo'
3. Hit 'OK' in error dialog
4. Hit 'Undo'
5. Hit 'Redo'
6. Hit 'Undo'
7. Hit 'Redo'

--Actual Result--
After 2nd step - error dialog is shown 'Cannot delete file...' (see the picture 'Undo first try'). Exception is thrown (see IDE log).
After 4th step - IDE does not recognize the action taken longer (see the picture 'Undo second try'). However undo is done.
After 5th step - IDE still does not recognize the action taken (see the picture 'Redo first try'). However redo is done.
After 6th step - user does not have to confirm Undo longer. Undo is done but the builder is not deleted (see the picture 'Undo last try - builder not removed).
After 7th step - user does not have to confirm Redo longer.

Sometimes the 'Undo' at 4th step does not work and leads to the same error as after 2nd step. The workaround is to hit 'Undo' until error is gone.
Comment 1 stwr 2015-08-20 06:26:33 UTC
Created attachment 155471 [details]
IDE log
Comment 2 stwr 2015-08-20 06:29:57 UTC
Created attachment 155472 [details]
Undo first try
Comment 3 stwr 2015-08-20 06:30:05 UTC
Created attachment 155473 [details]
Undo second try
Comment 4 stwr 2015-08-20 06:30:11 UTC
Created attachment 155474 [details]
Redo first try
Comment 5 stwr 2015-08-20 06:30:19 UTC
Created attachment 155475 [details]
Undo last try - builder not removed
Comment 6 Ralph Ruijs 2015-09-14 07:49:04 UTC
The problem starts with the exception "Cannot delete file...". To get more information about what went wrong, #255264 was created.

The other steps are either a consequence of the first exception, or are duplicate of the other undo/redo issues.

Closing as worksforme, I can't reproduce the first step and would need the extra info from #255264.

Thanks for the report!