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 242580 - Incorrect syntax error
Summary: Incorrect syntax error
Status: RESOLVED DUPLICATE of bug 226948
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-05 15:43 UTC by dusty
Modified: 2014-03-05 15:49 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 dusty 2014-03-05 15:43:38 UTC
Creating an empty javascript file and the inserting the following three simple lines:

if (false) {
  return;
}

gives two syntax errors on the editor:

- on the second line it says "invalid return statement"

- on the third line it says "expected EOF but found }"

I'm using netbeans 8.0RC1 with jdk 8b129
Comment 1 Vladimir Riha 2014-03-05 15:49:10 UTC

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