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

Summary: [Introduce Constant] allows existing identifier
Product: java Reporter: novakm <novakm>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.