Bug 22043 - [javadoc][assist] Code Completion in Javadoc @see/@link doesn't work on partially entered argument types
Summary: [javadoc][assist] Code Completion in Javadoc @see/@link doesn't work on parti...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 43088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-30 11:37 EDT by Andreas Krüger CLA
Modified: 2005-10-31 06:50 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Krüger CLA 2002-07-30 11:37:26 EDT
I have a class with some

    public void thisIsAMethod(String param) {}
 
In the context of a javadoc comment in the same class, I type

   @see #thisIsAMethod<code completion>

All works well and I get the completion

   @see #thisIsAMethod(String param)

Yet, if I type one or two characters MORE before I hit code completion, e.g.,

   @see #thisIsAMethod(S<code completion>

code completion doesn't any longer know what to do.

When I have overloaded methods, it might be usefull to partially type
the parameter type before hitting <code completion>.
Comment 1 Dirk Baeumer CLA 2002-07-30 13:51:09 EDT
Good suggestion. 

But this doesn't work for normal code assist either and we use this 
infrastructure for Javadoc code assist as well. 

Since code assist proposal are generated by Core moving to Core for commenting. 
Without core support there is little we can do in the UI.
Comment 2 Philipe Mulet CLA 2002-07-31 06:18:43 EDT
Though we want to improve the smartness of completion proposal (better sort 
them based on type expectations around - e.g. in assignment, right-hand side is 
likely intended to match type of left-hand side), I am not sure this would 
solve this one defect.

The problem reported here is that codeassist no longer works in the first 
argument of the method. The javadoc support seems to be preventing the 
codeassist call to perform correctly). You should investigate what you pass 
along to the codeassist engine at that point.

In standard source, it would work fine.
Comment 3 Dani Megert CLA 2003-08-27 06:46:54 EDT
this is probably related to the problem that F3 in Javadoc partitions only works
for types and not for members (i.e. this having a # infront of it).
Comment 4 Dani Megert CLA 2003-09-15 09:57:57 EDT
*** Bug 43088 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2004-08-20 09:14:01 EDT

*** This bug has been marked as a duplicate of 54968 ***
Comment 6 Dani Megert CLA 2004-08-20 09:14:39 EDT
touched wrong bug
Comment 7 Dani Megert CLA 2005-09-16 03:27:57 EDT
Moving bug since ownership changed
Comment 8 Frederic Fusier CLA 2005-10-20 15:51:06 EDT
Fixed and released in HEAD.
Comment 9 Frederic Fusier CLA 2005-10-20 15:52:55 EDT
Test cases added in JavadocBugsCompletionModelTest
Comment 10 Jerome Lanneluc CLA 2005-10-31 06:50:48 EST
Verified for 3.2 M3 using build I20051031-0010