Bug 77707

Summary: [assist] Completion fails on import when enum is defined in source
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2004-11-03 13:01:23 EST
Using I200411022200 + jdt.core HEAD...

Following sample does not offer any completion at <cursor here> position
although it should insert XXX:
Test.java:
  import e.X<cursor here>;
  public class Test {
      enum Sample { CONST }
  }
e/XXX.java
package e;
class XXX {}
Comment 1 Frederic Fusier CLA 2004-12-15 10:52:12 EST
Using 3.1 M4 candidate (I200412142000), I've another test case:
A.java:
  import p.My<cursor>;
  public class A {
  }
MyEnum.java
  package p;
  public enum MyEnum {
	A, B, C, D;
  }
(differs that MyEnum is not defined in the file itself)

Another variation:
A.java:
  import p.MyEnum;
  public class A {
     My<cursor> my;
  }
Comment 2 David Audel CLA 2005-04-07 11:17:14 EDT
Can not be reproduced in I20050401-1645