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 269812 - Introduce Variable dialog box fails to finish introducing it if its name starts with a keyword
Summary: Introduce Variable dialog box fails to finish introducing it if its name star...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-13 16:13 UTC by wissenstein
Modified: 2017-02-13 16:13 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 wissenstein 2017-02-13 16:13:48 UTC
Product Version = NetBeans IDE Dev (Build 201702060002)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens every time

STEPS:
  1. In a method of a Java class, write: "new Object();"
  2. Select the substring "new Object()" of the string entered in step 1 and choose Refactor/Introduce/Variable. A respective dialog box appears. Field "Name" contains a suggested name, buttons "Ok" and "Cancel" are available.
  3. In Name field, change the name to "super". The following warning appears: "Name is not a valid java identifier". Button "Ok" becomes unavailable.
  4. Continue entering the name so that it becomes "supervisor". The warning disappears.

ACTUAL:
  Button "Ok" remains unavailable.

EXPECTED:
  Button "Ok" becomes available again.