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 230112 - Mark occurrences highlights (and renames) incorrect part of code
Summary: Mark occurrences highlights (and renames) incorrect part of code
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-22 12:51 UTC by Vladimir Riha
Modified: 2013-05-22 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (35.66 KB, image/png)
2013-05-22 12:53 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-05-22 12:51:01 UTC
Please copy & paste following:


!function(test) {
    console.info("vstupni param: " + test);

    var bar = "bar promenna";

    var Alert = function() {

    };

    Alert.prototype.getInfo = function(param) {
        return "Info from Alert " + param + " and " + bar;
    };

    var alert = new Alert();
    console.info(alert.getInfo(22));
}("sranda");



And place cursor inside Alert on line

    var alert = new Alert();


=> check attached screenshot, on line with "var Alert =" there is incorrect "highlighting"


Product Version: NetBeans IDE 7.3 (Build 201302132200)
Updates: Updates available
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-05-22 12:53:07 UTC
Created attachment 134742 [details]
screenshot
Comment 2 Vladimir Riha 2013-05-22 12:54:23 UTC
Sorry, I thought I was having Dev build instead of 7.3. This works fine in Dev