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

Summary: Introduce Variable dialog box fails to finish introducing it if its name starts with a keyword
Product: ide Reporter: wissenstein <wissenstein>
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10   
Issue Type: DEFECT Exception Reporter:

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.