Bug 171016

Summary: [javadoc][assist] No completion for tag when uppercase is used
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eric_jodet
Version: 3.3   
Target Milestone: 3.3 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

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.