Bug 171016 - [javadoc][assist] No completion for tag when uppercase is used
Summary: [javadoc][assist] No completion for tag when uppercase is used
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-19 04:31 EST by Frederic Fusier CLA
Modified: 2007-02-06 03:52 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (3.82 KB, patch)
2007-01-19 09:09 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2007-01-19 04:31:26 EST
Simple test case:
class X {
    /**
     * @In<|>
     */
    public void foo(String str) {
    }
}

Completing at <|> position gives no proposal instead of expected {@inheritDoc} tag.

It seems that completion for javadoc tags is case sensitive...
Comment 1 Frederic Fusier CLA 2007-01-19 04:37:40 EST
Problem comes from CompletionJavadocParser.possibleTags(char[], boolean) method...
Prefix comparison with possible tags:
	if (CharOperation.prefixEquals(prefix, possibleTags[k][i])) {
should not be case sensitive:
	if (CharOperation.prefixEquals(prefix, possibleTags[k][i], false)) {

I'll fix it...
Comment 2 Frederic Fusier CLA 2007-01-19 09:09:14 EST
Created attachment 57132 [details]
Proposed patch
Comment 3 Frederic Fusier CLA 2007-01-19 09:10:44 EST
Released for 3.3 M5 in HEAD stream.
Comment 4 Maxime Daniel CLA 2007-02-06 03:52:41 EST
Verified for 3.3 M5 using build I20070205-1824.