Bug 94788

Summary: [push down] annotation as member type results in wrong Import [refactoring]
Product: [Eclipse Project] JDT Reporter: Benjamin Pasero <ENJ>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benjamin Pasero CLA 2005-05-11 13:00:12 EDT
Version: 3.1.0
Build id: I20050509-2010

Steps to reproduce:
1.) Create Classes Parent and Child, where Child extends Parent
2.) Add Annotation Foo to Parent:

   @interface Foo {

    }

    Foo foo;

3.) Call Refactor > Push Down

Actual Results:
"import Parent.Foo;" is added to the Child class, which cannot be resolved.


Expected Results:
No import statement is added.

Regards,
Ben