Bug 117183 - [javadoc][assist] No completion in text when cursor location is followed by a '.'
Summary: [javadoc][assist] No completion in text when cursor location is followed by a...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-19 08:44 EST by Frederic Fusier CLA
Modified: 2005-12-13 09:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.