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 169790 - Highlighting of Exit points does not work in some cases
Summary: Highlighting of Exit points does not work in some cases
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-04 10:32 UTC by Alexandr Scherbatiy
Modified: 2010-07-07 19:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE screenshot (19.62 KB, image/png)
2010-03-12 05:17 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-08-04 10:32:38 UTC
marina-netbeans-plugin: #228

  Product Version         = NetBeans IDE 6.7.1 (Build 200907202301)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.

Steps to reproduce:

- Copy the code to the editor:
-------------------------------------------------------
class B{}

class A{

    public function hello ():String {
         "Hello World!"
    }

    public function getB():B { 
        return B{}
    }

}
-------------------------------------------------------

- Place the cursor on the return type of the hello function
  The only last bracket is highlighted

- Place the cursor on the return type of the getB function
  The only last bracket is highlighted
Comment 1 Alexandr Scherbatiy 2009-08-04 10:46:35 UTC
One more sample:
----------------------------------------------
function min (x:Number, y:Number):Number {
    if( x < y ) then x  else y
}
----------------------------------------------
Comment 2 Anton Chechel 2009-08-04 13:45:30 UTC
Yes, there is a bug in compiler I am waiting to be fixed for this issue:
http://javafx-jira.kenai.com/browse/JFXC-3284
Comment 3 Anton Chechel 2010-03-10 09:20:27 UTC
http://javafx-jira.kenai.com/browse/JFXC-3284
has been fixed, please verify
Comment 4 Alexandr Scherbatiy 2010-03-12 05:16:32 UTC
The issue is still reproduced in build
NetBeans-JavaFX-Soma: #182 Mar 12, 2010 12:01:00 AM

See the attached screenshot.
Comment 5 Alexandr Scherbatiy 2010-03-12 05:17:10 UTC
Created attachment 95079 [details]
IDE screenshot
Comment 6 Alexandr Scherbatiy 2010-03-12 05:20:01 UTC
The highlighting of exit points does not work for functions
like 
----------------------------------------------
public function hello(): String {
    "Hello World!"
}

function min(x: Number, y: Number): Number {
    if (x < y) then x else y
}
----------------------------------------------
Comment 7 Anton Chechel 2010-06-15 15:53:11 UTC
fixed
http://hg.netbeans.org/javafx/rev/979a87527079
Comment 8 Alexandr Scherbatiy 2010-06-16 08:27:34 UTC
verified in NetBeans IDE Dev (Build 201006160001)
Comment 9 Andrei Chistiakov 2010-07-07 19:44:09 UTC
Verified with NetBeans IDE 6.9.1 Dev (Build 201007052301)