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 207164 - Switch/case error
Summary: Switch/case error
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 10:33 UTC by grn-it
Modified: 2012-09-21 12:57 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 grn-it 2012-01-11 10:33:31 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_29
Runtime = Java HotSpot(TM) Client VM 20.4-b02

When editing a JS-files in construction switch/case in some cases may be removed first letter.
Example:
switch (something) {
  case 'first': {firstFunc();break;}
}
From the function name will be removed the first letter. Name will be irstFunc() resulting in an error. In some cases, it is not clear.
Comment 1 Petr Pisl 2012-09-21 12:57:41 UTC
The code was rewritten. Shouldn't happen anymore.