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 164399 - [parser] underlining wrong part of code in if .. else statement when syntax error present in code
Summary: [parser] underlining wrong part of code in if .. else statement when syntax e...
Status: RESOLVED DUPLICATE of bug 211165
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 16:01 UTC by Filip Zamboj
Modified: 2012-04-13 14:22 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 Filip Zamboj 2009-05-04 16:01:48 UTC
Product Version: NetBeans IDE Dev (Build 2009-05-04_15-03-52 )
Java: 1.6.0_14-ea; Java HotSpot(TM) Client VM 14.0-b12

steps to reproduce: 
use this code 
1. if (isset($_POST['submit_step_1']) && ()) { //<- there is an obvious mistake here 
2.   echo "I am wrong condition because of empty brackets"; 
3. } else { 
4.   echo "I am part of code that won't be reached because of wrong condition in if statement"; 
5. }

result: else is underlined 
expected result: syntax error will be found on line 1 and this line will be underlined
Comment 1 Tomasz Slota 2009-05-19 09:10:14 UTC
confirmed, P4 I think 
Comment 2 Tomasz Slota 2010-02-10 08:46:30 UTC
reassigning to default owner
Comment 3 Filip Zamboj 2010-09-15 12:29:00 UTC
batch reassigning
Comment 4 Tomas Mysik 2011-06-08 14:57:15 UTC
Batch reassigning.
Comment 5 Ondrej Brejla 2012-04-13 14:22:00 UTC

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