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 208397 - [Replace constructor with builder] Does not check existence of generated file
Summary: [Replace constructor with builder] Does not check existence of generated file
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-14 15:15 UTC by Jiri Prox
Modified: 2012-11-16 20:23 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 Jiri Prox 2012-02-14 15:15:10 UTC
Replace constructor with builder refactoring does not check if the file, which should be generated, exists and it simply rewrites the file.

Step to reproduce:
1) have class with two constructors
2) call Replace constructor with builder on 1st one (keep defaults) 
3) call it on the second one (keep defaults) 
-> the class generated at step 2 is rewritten!




Product Version: NetBeans IDE Dev (Build 201202130400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jan Becicka 2012-02-14 15:59:01 UTC
Changeset: 3ca9dfd74291
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2012-02-14 16:49
Message:   
Issue #208397 - [Replace constructor with builder] Does not check existence of generated file
Comment 2 Jiri Prox 2012-11-16 20:23:43 UTC
v.