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

Summary: Incorrectly detect incomplete expressions that involves code blocks
Product: javaee Reporter: ecerichter
Component: JSPAssignee: issues@javaee <issues>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Wrong error message, due incomplete code block.

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