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 233912 - Inspect & Transform: duplicate configuration names are allowed that use same data
Summary: Inspect & Transform: duplicate configuration names are allowed that use same ...
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-04 10:14 UTC by MackSix
Modified: 2016-07-21 22:23 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 MackSix 2013-08-04 10:14:42 UTC
1. I can created as many duplicate configurations of "Default" as I want and
the name is the same for all the duplicates--"Default1". 

2. If I delete Default1 and it's duplicates, then when I duplicate Default
(make Default1 again) the settings for the deleted profile are persisting and
as soon as I check an Inspection node, all the nodes from the deleted profile
are auto-checked. (If the node I click happened to be in the deleted profile,
it is actually unchecked.)

Expected: Duplicate configurations are created with unique name. No creation of
duplicate names allowed. Settings are completely deleted when a configuration
is deleted.

Product Version: NetBeans IDE Dev (Build 201308022300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Balin 2016-07-07 07:18:39 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
Comment 2 MackSix 2016-07-21 22:23:27 UTC
This is still valid in:

Product Version: NetBeans IDE Dev (Build 201607140002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)

This is partial working for me now. Settings are deleted when a configuration is deleted and re-duplicating again uses original setting. 

There is still a problem with multiple-duplicates, even if the name is changed on one duplicate, it is using the same settings as another. Changing settings on one will change the settings on another. 


Steps to reproduce:

1. Invoke Refactor >> I&T
2. Click manage button and duplicate Default. Now you have a Default1
3. Duplicate Default again, 2 more times. Now you have 3 Default1.
4. Uncheck the first 3 configurations for any of the 3 Defalut1. Notice the configurations are unchecked for all Default1.
5. Change name of 2 of the Default1 to MyConfig1 and MyConfig2.
6. View Default1 and check one of the configurations that you unchecked in step 4. Notice that the configuration was checked in MyConfig1 and MyConfig2 indicating they are all pointing to the same configuration.
7. Duplicate MyConfig1 and now you have MyConfig11. Check any of the configurations that were unchecked. Notice that this works correctly and does not affect Default1, MyConfig1 or MyConfig2.

Expected: Each duplicate configurations is created with unique name. No creation of duplicate names allowed. Every duplicate has it's own unique settings.