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 244944 - Missing semicolon hint not working in throw statement
Summary: Missing semicolon hint not working in throw statement
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-08 13:12 UTC by Vladimir Riha
Modified: 2014-06-13 07:26 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 Vladimir Riha 2014-06-08 13:12:41 UTC
Please see below sample code, at line with "throw new TypeError", there is missing semicolon but IDE does not report it


function nic() {
    if (place instanceof Place && place.isValid()) {
        this[identifier] = place;
    } else {
        throw new TypeError("Provided place for '" + identifier + "' is not a valid option. ")
    }
}



Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2014-06-11 11:44:02 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2014-06-12 06:40:19 UTC
Integrated into 'main-silver', will be available in build *201406120533* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c70292abd478
User: Petr Pisl <ppisl@netbeans.org>
Log: #244944 - Missing semicolon hint not working in throw statement
Comment 3 Vladimir Riha 2014-06-13 07:26:18 UTC
thanks, verified

Product Version: NetBeans IDE Dev (Build 201406130001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-29-generic running on i386; UTF-8; en_US (nb)