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 106501 - Name validity check when introducing new element
Summary: Name validity check when introducing new element
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 115993 116021 165782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-13 14:05 UTC by Jiri Prox
Modified: 2013-09-02 14:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-06-13 14:05:40 UTC
Product Version: NetBeans IDE Dev (Build 070613) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System:
Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u6

Name validity of the new element should be checked during introducing new field/constant/variable/method - identifier
validity, keyword conflict and identifier already used (where possible)
Comment 1 Stanislav Aubrecht 2007-06-29 13:34:38 UTC
the first part of the fix

Checking in IntroduceMethodPanel.form;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceMethodPanel.form,v  <--  IntroduceMethodPanel.form
new revision: 1.2; previous revision: 1.1
done
Checking in IntroduceFieldPanel.form;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceFieldPanel.form,v  <--  IntroduceFieldPanel.form
new revision: 1.2; previous revision: 1.1
done
Checking in IntroduceVariablePanel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceVariablePanel.java,v  <-- 
IntroduceVariablePanel.java
new revision: 1.3; previous revision: 1.2
done
Checking in IntroduceHint.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceHint.java,v  <--  IntroduceHint.java
new revision: 1.9; previous revision: 1.8
done
RCS file: /cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/ErrorLabel.java,v
done
Checking in ErrorLabel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/ErrorLabel.java,v  <--  ErrorLabel.java
initial revision: 1.1
done
Checking in IntroduceVariablePanel.form;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceVariablePanel.form,v  <-- 
IntroduceVariablePanel.form
new revision: 1.2; previous revision: 1.1
done
Checking in Bundle.properties;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/Bundle.properties,v  <--  Bundle.properties
new revision: 1.2; previous revision: 1.1
done
Checking in IntroduceFieldPanel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceFieldPanel.java,v  <--  IntroduceFieldPanel.java
new revision: 1.2; previous revision: 1.1
done
Checking in IntroduceMethodPanel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceMethodPanel.java,v  <--  IntroduceMethodPanel.java
new revision: 1.2; previous revision: 1.1
done
Comment 2 Jan Lahoda 2007-09-19 21:17:33 UTC
*** Issue 116021 has been marked as a duplicate of this issue. ***
Comment 3 Jan Lahoda 2007-09-20 09:01:35 UTC
*** Issue 115993 has been marked as a duplicate of this issue. ***
Comment 4 Jan Becicka 2007-09-21 14:06:33 UTC
Checking in IntroduceMethodPanel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceMethodPanel.java,v  <--  IntroduceMethodPanel.java
new revision: 1.7; previous revision: 1.6
done
Checking in IntroduceFieldPanel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceFieldPanel.java,v  <--  IntroduceFieldPanel.java
new revision: 1.6; previous revision: 1.5
done
Checking in IntroduceVariablePanel.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/introduce/IntroduceVariablePanel.java,v  <-- 
IntroduceVariablePanel.java
new revision: 1.7; previous revision: 1.6
done
Comment 5 Jiri Prox 2007-10-10 13:09:48 UTC
The name validity in now checked correctly, but it still allow to introduce duplicate fields/variables/methods
Comment 6 Jan Becicka 2007-10-26 09:03:48 UTC
P4 imo.
Comment 7 Jan Lahoda 2008-11-21 10:49:47 UTC
I guess that we can consider the protection against duplicate elements as an enhancement.
Comment 8 Max Sauer 2009-05-22 13:44:15 UTC
*** Issue 165782 has been marked as a duplicate of this issue. ***