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 221475 - Incorrectly detect incomplete expressions that involves code blocks
Summary: Incorrectly detect incomplete expressions that involves code blocks
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 11:08 UTC by ecerichter
Modified: 2016-07-07 08:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Wrong error message, due incomplete code block. (23.43 KB, image/png)
2012-11-05 11:09 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2012-11-05 11:08:59 UTC
Product Version = NetBeans IDE Dev (Build 201211020001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02

NetBeans show an error at top of the page instead pointing that user forgot to end the code block.
Even an expert would take time in a complex page until he detects the real cause of the problem.
The ideal situation would be NetBeans pointing the line of the offending block instead of the first line of the page.

See attached screenshot: the real problem is at line 12, where a block start initiated, and has not block end. NetBeans shows first line with the message "reached end of file while parsing".
Comment 1 ecerichter 2012-11-05 11:09:48 UTC
Created attachment 127134 [details]
Wrong error message, due incomplete code block.
Comment 2 Marek Fukala 2012-11-20 14:21:07 UTC
jsp parser issue
Comment 3 Martin Balin 2016-07-07 08:56:04 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss