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 198801 - Inconsistent behaviour of autocompleting @see tags in javadoc
Summary: Inconsistent behaviour of autocompleting @see tags in javadoc
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 09:10 UTC by hupfdule
Modified: 2011-05-27 11:56 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 hupfdule 2011-05-23 09:10:35 UTC
Assume the following interface and implementation:

public interface TheInterface{
    /**
     * This method does nothing
     * @param arg1 the argument
     */
    public void myMethod(String arg1, Long arg2);
}

public class TheImpl implements TheInterface{
    /**
     * @see TheInterface#
     */
    public void myMethod(final String arg1){        
    }
}

If the cursor in the javadoc of the implementation, directly after the # sign, I can hit ctrl-space to start autocompletion of the method name. This opens a list of the available methods. I select the correct one (myMethod) and the result is:

     * @see TheInterface#myMethod(java.lang.String)

This is what I expect, the arguments are filled with the correct type and the implementation javadoc is considered correct (since the javadoc of the interface is correct).

If instead I enter the first characters of the method to autocomplete, so that it is unambiguous and then start autocompletion, no list of available methods is displayed (since it is unambiguious), but the outcome is:

     * @see NewInterface#myMethod(null)

where the parameter is selected to be overwritten by the user. This isn't helpful here, since I want to autocomplete the declaration, not the call to this method.
There is no good reason why there are these two different behaviours on whether the method to autocomplete is ambiguous or not.
Comment 1 Jan Becicka 2011-05-23 15:52:00 UTC
It looks like regular java completion wins instead of javadoc completion and inserts its item.
Comment 2 Dusan Balek 2011-05-26 15:15:39 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/848486ec4db8
Comment 3 Dusan Balek 2011-05-27 11:53:28 UTC
Integrated into release701.

http://hg.netbeans.org/releases/rev/fc7de8d6af83
Comment 4 Quality Engineering 2011-05-27 11:56:34 UTC
Integrated into 'main-golden', will be available in build *201105270401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/848486ec4db8
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #198801 - Inconsistent behaviour of autocompleting @see tags in javadoc - fixed.