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 116021 - [Introduce Constant] allows existing identifier
Summary: [Introduce Constant] allows existing identifier
Status: VERIFIED DUPLICATE of bug 106501
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-19 15:39 UTC by novakm
Modified: 2007-09-27 11:02 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 novakm 2007-09-19 15:39:32 UTC
If you invoke Introduce Constant on "text" in code
String s = "text";
and try to name the new constant s, no warning appears resulting in 
String s = s;
and thus uncompilable code.

-----
NB 6.0 Beta 1 - Build 200709141330
Comment 1 novakm 2007-09-19 16:07:41 UTC
Same case for Introduce Variable and Field
Comment 2 Jan Lahoda 2007-09-19 21:17:38 UTC

*** This issue has been marked as a duplicate of 106501 ***
Comment 3 novakm 2007-09-27 11:02:53 UTC
Verified duplicate.