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 151120 - Code completion adds function with arguments for static import
Summary: Code completion adds function with arguments for static import
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks: 154422
  Show dependency tree
 
Reported: 2008-10-23 10:57 UTC by Alexandr Scherbatiy
Modified: 2010-03-15 09:52 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 Alexandr Scherbatiy 2008-10-23 10:57:10 UTC
Steps to reproduce:

- Type in the editor 'import java.lang.Math.'
- Press <Ctrl+Space> and select 'cos'
The result is
----------------------------------------
import java.lang.Math.cos(arg0);
----------------------------------------

JavaFXApplication8\src\javafxapplication8\Main.fx:19: You have forgotten the ';', which is needed to separate one
expression from the next.
import java.lang.Math.cos(arg0);
1 error
Comment 1 Alexandr Scherbatiy 2008-10-23 10:57:35 UTC
JavaFX_NB_Plugin_NB65_promoted: #48 2008-10-23_03-01-09.zip

  Product Version         = NetBeans IDE 6.5 RC1 (Build 200810171318)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.
Comment 2 David Strupl 2008-10-29 13:20:24 UTC
This can be done post 1.0.
Comment 3 Petr Nejedly 2010-03-12 15:08:52 UTC
Fixed while generally improving completion in imports:
http://hg.netbeans.org/javafx/rev/eb4360a6a76e
http://hg.netbeans.org/javafx/rev/a419f22c643f
Comment 4 Alexandr Scherbatiy 2010-03-15 09:52:40 UTC
verified in NetBeans-JavaFX-Soma:  #185