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 238114 - Error identifier in Catch is resolved as global variable, if you are accessing its properties
Summary: Error identifier in Catch is resolved as global variable, if you are accessin...
Status: RESOLVED DUPLICATE of bug 249619
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-07 19:34 UTC by c69
Modified: 2015-02-11 12:12 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 c69 2013-11-07 19:34:03 UTC
Example:

var scope1 = function() {
	try {
	} catch (err) {
		var bug = err.message;
		var ok = err;
	}
};

This breaks renaming and triggers wrong coloring.


similar to: https://netbeans.org/bugzilla/show_bug.cgi?id=224040, https://netbeans.org/bugzilla/show_bug.cgi?id=224462
Comment 1 Vladimir Riha 2013-11-08 07:53:28 UTC
Reproducible, seems to be caused by accessing the message property. Thank you for reporting.


Product Version: NetBeans IDE Dev (Build 201311070001)
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 Vladimir Riha 2015-02-11 12:12:45 UTC
Already fixed in dev build.

Thank you

*** This bug has been marked as a duplicate of bug 249619 ***