Code completion broken ?

Hi!

I've just downloaded and run the build from 17th of July(200207172340 -

Release 3.4 (stabilization daily build)).

And I think the code completion is broken.

If I have a method with multiple parameters and do this:

objectName.method( and then press CTRL-SPACE I don't see a list where this

method would be listen with all of it's parameters. So I cannot use this

for parameter names.

And even if I press CTRL-SPACE on objectName. I see a list of methods of

that class, but only classes of their parameters.

Example:

public void someMethod(String where, Integer number)

would be listed as

someMethod(String, Integer) in code completion.

Any idea?

Best regards,

Kovi

P.S.: The same happens also with the Q-Build - NetBeans 3.4 Beta 3

(200207170340)

[891 byte] By [Kova&#;,Gregor] at [2007-11-25 16:47:26]
# 1

Hi!

I've just solved this one by myself.

I've just updated code completion databases again.

Best regards,

Kovi

At 09:40 18.7.2002 +0200, you wrote:

>Hi!

>

>I've just downloaded and run the build from 17th of July(200207172340 -

>Release 3.4 (stabilization daily build)).

>And I think the code completion is broken.

>If I have a method with multiple parameters and do this:

>objectName.method( and then press CTRL-SPACE I don't see a list where this

>method would be listen with all of it's parameters. So I cannot use this

>for parameter names.

>And even if I press CTRL-SPACE on objectName. I see a list of methods of

>that class, but only classes of their parameters.

>Example:

>public void someMethod(String where, Integer number)

>would be listed as

>someMethod(String, Integer) in code completion.

>

>Any idea?

>

>Best regards,

> Kovi

>

>P.S.: The same happens also with the Q-Build - NetBeans 3.4 Beta 3

>(200207170340)

Kova&#;,Gregor at 2007-7-2 23:27:22 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 2

Hi,

It seems that the class you requested in code completion has been parsed

from class file. In that case names of parameters cannot be retrieved.

They are available only if code completion database has been parsed from

sources. That's why you see only classes of parameters.

The reason why you cannot see parameters after "objectName.myMethod(" is:

1. objectName has been parsed from class files.

2. there is only one occurence of "myMethod" in that class. In that case

code completion instantly substitute this only result. Unfortunatelly,

the name of parameter is not available, so nothing will happen. I am

not sure how to handle this situation. Anyway, if you disable code

completion instant substitution via Options/Editing/Editor Settings/Java

Editor/Expert/Code Completion Instant Substitution -> false, you should

get the code completion with the parameters.

Thanks,

Mato

Gregor Kovaè wrote:

> Hi!

>

> I've just downloaded and run the build from 17th of July(200207172340

> - Release 3.4 (stabilization daily build)).

> And I think the code completion is broken.

> If I have a method with multiple parameters and do this:

> objectName.method( and then press CTRL-SPACE I don't see a list where

> this method would be listen with all of it's parameters. So I cannot

> use this for parameter names.

> And even if I press CTRL-SPACE on objectName. I see a list of methods

> of that class, but only classes of their parameters.

> Example:

> public void someMethod(String where, Integer number)

> would be listed as

> someMethod(String, Integer) in code completion.

>

> Any idea?

>

> Best regards,

>Kovi

>

> P.S.: The same happens also with the Q-Build - NetBeans 3.4 Beta 3

> (200207170340)

>

Roskanin,Martin at 2007-7-2 23:27:22 > top of Java-index,Archived Forums,Sun ONE Studio 4...