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 161257 - Auto-fix for javascript warning removes invalid character
Summary: Auto-fix for javascript warning removes invalid character
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 14:23 UTC by kolen
Modified: 2009-03-26 15:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (11.59 KB, image/png)
2009-03-26 14:24 UTC, kolen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kolen 2009-03-26 14:23:51 UTC
"Fix code" function for javascript warning "Trailing comma (not supported by Internet Explorer)" removes invalid
character, not comma.

example 1: first comma higlighted, will be removed if fix menu item is executed.
example 2: first space before 'b' will be removed (not highlighted)
example 3: 'e' letter
example 4: first space before 'bbbb' (not highlighted)
Comment 1 kolen 2009-03-26 14:24:37 UTC
Created attachment 78906 [details]
Screenshot
Comment 2 kolen 2009-03-26 14:25:35 UTC
Product Version: NetBeans IDE Dev (Build 200902231810)
Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Comment 3 Marek Fukala 2009-03-26 15:00:19 UTC
All of the examples works fine for me in latest dev build. The issue looks like a bug in the javascript incremental
parsing which has been disabled recently. Can you please check this in latest dev build and reopen if it still doesn't
work? Thanks.