Bug 417821 - [1.8][quick assist] Convert abstract method to default method in interface
Summary: [1.8][quick assist] Convert abstract method to default method in interface
Status: CLOSED DUPLICATE of bug 436227
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-23 08:50 EDT by Noopur Gupta CLA
Modified: 2014-05-30 05:38 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 2013-09-23 08:50:30 EDT
A quick assist can be provided to convert an abstract method to default method in interfaces.
This would be useful for the new interface users with cases like "void java.util.Iterator.remove()" in JDK7 and JDK8.

Example: Invoking quick assist on the abstract method:

interface X {
	int foo(int a);
}

should result in:

interface X {
	default int foo(int a) {
		// TODO Auto-generated method stub
		return 0;
	}
}
Comment 1 Noopur Gupta CLA 2014-05-30 05:38:34 EDT

*** This bug has been marked as a duplicate of bug 436227 ***