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 111777 - There are no code hints for class constructors.
Summary: There are no code hints for class constructors.
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: HP Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 15:57 UTC by kinghenree
Modified: 2007-09-26 09:14 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 kinghenree 2007-08-02 15:57:32 UTC
Product Version: NetBeans IDE 6.0 M10 (build 200706281431)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.9-22.0.1.ELsmp running on i386; UTF-8; en_US (nb)

What happened to the code hints for class constructors?

Steps to reproduce:

1. Open a Java class editor
2. Type new <Class Name>(
3. Now hit <CTRL> + <Spacebar>

For Example:
  new java.util.Hashtable(<CTRL> + <Spacebar>

--OR--

1. Open a Java class editor
2. Take any J2EE(<= 1.4, assuming the same for Java EE 5) local home object and type <Local Home Object>.create(
3. Now hit <CTRL> + <Spacebar>

You will notice that the code completion hints for a class' constructors no longer appears.  This feature was present in
NB 5.5.1 and if memory serves me correct it has been present as far back as NB 3.5, but don't hold me to that.  The code
hints for completion still seem to work for methods available to an object-- type <object name>., then <CTRL> + <Spacebar>.

I know I could just keep the javadocs handy to lookup whatever I needed, but after getting accustomed to using this
feature I would prefer this nicety to remain available.  I actually use this feature quite a bit.
Comment 1 Jiri Prox 2007-08-02 17:01:30 UTC
This was changed in 6.0 to be consistent with code completion of regular methods. You have to invoke code completion
(ctrl-space) before the opening brace '(', e.g.  new java.util.Hashtable<ctrl>+<spacebar>
Comment 2 kinghenree 2007-08-02 21:54:22 UTC
That works.  Thanks for the rapid response!