Bug 77707 - [assist] Completion fails on import when enum is defined in source
Summary: [assist] Completion fails on import when enum is defined in source
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 13:01 EST by Frederic Fusier CLA
Modified: 2005-04-07 11:17 EDT (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 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