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 137082 - Wrong parser recovering on missing ";"
Summary: Wrong parser recovering on missing ";"
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 09:26 UTC by Leonid Lenyashin
Modified: 2013-05-07 11:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The problematic source (1.56 KB, text/plain)
2008-06-12 09:29 UTC, Leonid Lenyashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Lenyashin 2008-06-12 09:26:56 UTC
In the attached file (it is the only file you need to have in a project) navigator holds 2 entries for "new_number" and
the second one is just weird leading to a place where "new_number" is used.
Comment 1 Leonid Lenyashin 2008-06-12 09:29:27 UTC
Created attachment 62731 [details]
The problematic source
Comment 2 Alexander Simon 2008-06-12 09:37:33 UTC
Error in code (missing ";"):
int len = 0

Error breaks model.

Comment 3 Alexander Pepin 2008-11-19 17:37:12 UTC
It seems not to be a bug as error is highlighted and the code becomes wrong. Everything is OK as soon as ";" is put
after the statement or the line is removed. Please reopen if anyone have any objections.
Comment 4 Alexander Simon 2008-11-19 17:48:14 UTC
Bug is about possibility to restore parsing after failure.
Parser should minimize side effect of missing ";".
Normal situation if parser is restored from next statement. It is a goal.
Bub is about case where parser does not restored and model miss a big part of declarations.