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 152345 - Completion no longer shows Class
Summary: Completion no longer shows Class
Status: VERIFIED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-04 19:30 UTC by Lark Fitzgerald
Modified: 2008-12-24 11:48 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 Lark Fitzgerald 2008-11-04 19:30:40 UTC
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
Comment 1 Lark Fitzgerald 2008-11-04 19:34:33 UTC
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.
Comment 2 David Strupl 2008-11-04 20:04:52 UTC
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 ...
Comment 3 Alexandr Scherbatiy 2008-12-24 11:48:00 UTC
verified.

issue 156041 "Code completion suggests nothing after '=' operator" is created.