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 79182 - Creating two variables with same name in 1 scope should not be allowed
Summary: Creating two variables with same name in 1 scope should not be allowed
Status: VERIFIED DUPLICATE of bug 78154
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-27 10:43 UTC by Mikhail Kondratyev
Modified: 2006-07-24 11:27 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 Mikhail Kondratyev 2006-06-27 10:43:36 UTC
Currently IDE allows to have two variables with the same name in 1 scope. Such a
situation may appear after variable creation or rename.
Steps to reproduce:
 - create a new Sync process
 - open it in designer
 - create new variable named inputVar
IDE allows this while there is already a variable with such name in the process
Comment 1 Denis Anisimov 2006-06-27 11:46:27 UTC
There are two issues:
1) OM issue. OM should implement canPaste method in the correct way.
In this case OM should check existance of variable with the same name in 
container. It is implemented now.
2) Clients of OM should use some logic for determening possibility to add child
in parent. This logic could use canPaste method. 
So now this is responsibility of client.
Comment 2 Nikita Krjukov 2006-07-22 00:58:48 UTC

*** This issue has been marked as a duplicate of 78154 ***
Comment 3 Mikhail Kondratyev 2006-07-24 11:27:39 UTC
Verified in build from 060723