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 136404 - Completion: mixing static and non static members
Summary: Completion: mixing static and non static members
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 146952
  Show dependency tree
 
Reported: 2008-06-03 18:16 UTC by Lark Fitzgerald
Modified: 2008-10-20 16:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
timeline cc (87.99 KB, image/jpeg)
2008-06-03 18:25 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-06-03 18:16:17 UTC
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
fx NB61 cb plugin: 243

1. create clock sample application
2. go to line:
repeatCount : Timeline.INDEFINITE
3. position cursor after Timeline.
4. press ctrl+space
Get a large list (composite image attached).  Timeline does not appear to inherit from anything so I expected to only 
see the items listed in the api (file:///C:/Program%20Files/NetBeans%206.1/javafx/javafx-
sdk1.0/docs/api/javafx.animation/javafx.animation.Timeline.html):

autoReverse Boolean
INDEFINITE Integer
keyFrames KeyFrame[]
paused Boolean
repeatCount Number
running Boolean
toggle Boolean
pause(): Void
resume(): Void
start(): Void
stop(): Void
Comment 1 Lark Fitzgerald 2008-06-03 18:25:03 UTC
Created attachment 62329 [details]
timeline cc
Comment 2 David Strupl 2008-07-15 08:13:16 UTC
The problem is that the code completion does not distinguish between the static and non-static members. Since the static
feature of the language is going to change for 1.0 I am leaving this report as opened. For details see
http://openjfx.java.sun.com/jira/browse/JFXC-1051
Comment 3 David Strupl 2008-08-19 09:40:11 UTC
Static was dropped already. The code completion must be checked for what we show for members.
Comment 4 Lark Fitzgerald 2008-10-13 21:02:34 UTC
This is returning the correct values.
Tested using FX Cont trunk build 349 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 708, Build-ID: 2008-10-13_03-09-52 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810060201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 5 Alexandr Scherbatiy 2008-10-14 10:47:02 UTC
JavaFX_trunk_NB_Plugin_NB65_cont: #349 2008-10-13_19-07-38.zip
 
  Product Version         = NetBeans IDE Dev (Build 200809151401)
  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.


The issue is still reproduced:

- Create a JavaFX Script file:
-------------------------------------------
import javafx.animation.*;

Timeline.
-------------------------------------------

- Position a cursor after 'Timeline.'
- Press <Ctrls+Space>
- Choose 'time' from the list
-------------------------------------------
import javafx.animation.*;

Timeline.time;
-------------------------------------------

Build the code:
JavaFXApplication\src\javafxapplication\Main.fx:12: non-static method get$time() cannot be referenced from a static context
Timeline.time;
1 error
Comment 6 David Strupl 2008-10-18 22:50:37 UTC
Fixed by changeset:   1513:f74d3f77e0a8
Comment 7 Lark Fitzgerald 2008-10-20 16:43:34 UTC
Tested using Promoted SDK/Plugin build #42
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 749, Build-ID: 2008-10-17_19-02-42 on:
Product Version: NetBeans IDE 6.5 RC1 (Build 200810171318)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)