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 215354 - Wrong coloring after this. in a function defined via prototype
Summary: Wrong coloring after this. in a function defined via prototype
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 13:54 UTC by Petr Pisl
Modified: 2012-07-13 14:28 UTC (History)
1 user (show)

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 Petr Pisl 2012-07-10 13:54:24 UTC
function A()                        
{
    this.x = 1;
    this.x = 1;

}

A.prototype.inc = function()        
{
    this.x += 1;   // <- here is the wrong coloring. The x field should be green
}
Comment 1 Quality Engineering 2012-07-11 03:29:08 UTC
Integrated into 'main-golden', will be available in build *201207110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1d28a5980e83
User: Petr Pisl <ppisl@netbeans.org>
Log: #215354 - Wrong coloring after this. in a function defined via prototype

This is not complete solution. There should be checked whether the property is not defined directly in prototype.
Comment 2 Petr Pisl 2012-07-12 10:40:39 UTC
Forgot to mark it as fixed.
Comment 3 Vladimir Riha 2012-07-13 14:28:58 UTC
verified, thanks


Product Version: NetBeans IDE Dev (Build 20120713-14c670351972)
Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b08
System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)