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.
Continuous build #498 contains SDK 47 (772) Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Found by automation FXTestClass003 in the ClassCCTests.java file. 1. start with this source: import java.lang.System; public class Foo { public var a : String ; var b : String = bind a; var c : String = "Test"; function bleep() : String { return "roll"; } function mud() : Integer { System.out.println(this.a); return 0; } } 2. position cursor on line after last } and ctrl+space. It now shows: abstract class def function import public var The diff is: 1 abstract 2 class 3 - def + for 4 function + if 5 import + insert + new 6 public + return + reverse + throw + try 7 var + while + Duration + FX + FXTestClass + FXTestClass001 + FXTestClass002 + FXTestClass003 + FXTestClass005 + FXTestClass006 + FXTestClass007 + FXTestClass008 + FXTestClassVar1 + FXTestClassVar2 + Foo + Object + String + System + applications + classes + com + declarations + frame + fxprj1 + imports + java + javacard + javafx + javax + org + packages + sun + sunw
A second Scenario, FXTestClassVar2 from ClassCCTests is: 1. start with: public class FXTestClassVar1 { } 2. Go to the end of the file and type: var a = 3. ctrl+space No suggestions are made.
The first scenario is invalid. You cannot type "free commands" if something is public in your source file. I have tried to reflect that in the code completion on the top (script) level. Marking as invalid. The second scenario might be valid case because if I am not mistaken you can actually type var on the script level even when there is a public class. Please always try to first finish what you intend to type in the editor, try to compile it and if the editor was not suggesting something that can be typed in there then file an issue. Please potentially file a separate issue for the second case - it is different from the first one since it contains unfinished declaration ...
verified. issue 156041 "Code completion suggests nothing after '=' operator" is created.