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 237533 - Keyword "super" leads to wrong autocompletion
Summary: Keyword "super" leads to wrong autocompletion
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 09:54 UTC by madflow
Modified: 2016-07-19 14:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example (115 bytes, text/plain)
2013-10-29 10:24 UTC, madflow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description madflow 2013-10-23 09:54:08 UTC
This is rather unlikely to happen to anyone - but:

In a javascript file i declared to variables:

var superiorFoo,
    superiorBar;

When I now type "superior" and use ctrl+space the variables are autocompleted to:

supersuperiorBar;

and 

supersuperiorFoo;

It only happens when I use the keyword "super". This is probably a reserved word - but it actually messed up my code in real word example ;)
Comment 1 Vladimir Riha 2013-10-29 09:50:21 UTC
Works for me in 7.4 and Dev. Does it happen anywhere in code, in any file (php, html, js)? If you can reproduce it, could you attach the code here and version of NetBeans? Thank you in advance.


Product Version: NetBeans IDE Dev (Build 201310290001)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 madflow 2013-10-29 10:24:38 UTC
Created attachment 141623 [details]
Example
Comment 3 madflow 2013-10-29 10:26:44 UTC
Here is the version:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_21; OpenJDK 64-Bit Server VM 23.7-b01
Runtime: OpenJDK Runtime Environment 1.7.0_21-b02
System: Linux version 3.10-2-amd64 running on amd64; UTF-8; de_DE (nb)


I must correct my first report:

I happens when I type "super" and then try to autocomplete.
Comment 4 Vladimir Riha 2013-10-29 11:42:40 UTC
You're right, thanks. Now I can reproduce it

Product Version: NetBeans IDE Dev (Build 201310290001)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Petr Hejl 2016-07-19 14:17:47 UTC
This seems to be ok in dev version.