Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 574820 - [17][sealed] quick fix to add super interface should also add corresponding import
Summary: [17][sealed] quick fix to add super interface should also add corresponding i...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.21   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.21 M2   Edit
Assignee: Noopur Gupta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 573980
Blocks: 572061
  Show dependency tree
 
Reported: 2021-07-13 07:23 EDT by Noopur Gupta CLA
Modified: 2021-08-18 06:00 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 Noopur Gupta CLA 2021-07-13 07:23:43 EDT
package test1;

import test2.IRectangle;

public sealed interface IShape permits IRectangle { // [1]
}

package test2;

public interface IRectangle {

}

Quick fix at [1] results in:

package test2;

public interface IRectangle extends IShape {

}

It should also add:

import test1.IShape;
Comment 1 Eclipse Genie CLA 2021-07-13 07:26:31 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/183016
Comment 3 Noopur Gupta CLA 2021-08-18 06:00:48 EDT
Verified in I20210817-1840.