Bug 117183

Summary: [javadoc][assist] No completion in text when cursor location is followed by a '.'
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2005-11-19 08:44:48 EST
Using I20051116-1332.

Consider following test case:
/**
 * I complete in an already existing sentence ended by a point:
 * Str.
 */
class X {
}

I complete after Str and does not get any proposal. Although I got several if
'.' is not there...

It should behave the same and offer me same proposal even with the final dot.
Comment 1 Frederic Fusier CLA 2005-11-25 07:21:14 EST
Another test case:
Reference.java
  public class Reference {
	public static int A_STATIC_FIELD = 0;
  }
Test.java
  /**
   * Completion inside reference Reference#A_STATIC_FIELD.
   */
  public class Test {
	public void foo() {}
  }

Try to complete wherever inside A_STATIC_FIELD gives no proposal!
Comment 2 Frederic Fusier CLA 2005-11-25 10:53:43 EST
There were 2 problems in CompletionJavadocParser:
1) at cursor location, it should not care whether member reference is followed by a white space or not,
2) it should not parse '.' as qualification spearator when cursor location is before this dot.

Fixed and released in HEAD.

Test case added in JavadocBugsCompletionModelTest
Comment 3 Jerome Lanneluc CLA 2005-12-13 09:29:44 EST
Verified for 3.2 M4 using build I20051213-0010.

Note that proposal from comment 1 is not inserted. Entered bug 120568.