Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 387940 - [quick fix] Add unimplemented methods quickfix add incorrect visibility
Summary: [quick fix] Add unimplemented methods quickfix add incorrect visibility
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 4.3 M3   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 382690 385101 390196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-23 23:15 EDT by Andrew Eisenberg CLA
Modified: 2013-06-27 01:39 EDT (History)
4 users (show)

See Also:


Attachments
Project that exhibits the problem (2.71 KB, application/x-zip-compressed)
2012-08-23 23:15 EDT, Andrew Eisenberg CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg CLA 2012-08-23 23:15:32 EDT
Created attachment 220235 [details]
Project that exhibits the problem

Originally reported here:
https://issuetracker.springsource.com/browse/STS-2862

To reproduce:

1. import attached project
2. open MyClass.java
3. execute quickfix "Add unimplemented methods"
4. notice that the "public" keyword is not added to new method and there is still a compile error.

Using Eclipse 4.2 release.
Comment 1 Deepak Azad CLA 2012-10-18 01:23:33 EDT
*** Bug 390196 has been marked as a duplicate of this bug. ***
Comment 2 Deepak Azad CLA 2012-10-18 01:25:28 EDT
Snippet to reproduce (for easy copy paste)

--------------------------------------------------
public class MyClass implements MyInterface {

}

interface MyInterface {
	@SuppressWarnings("unused")
	void myMethod();
}
--------------------------------------------------
Comment 4 Noopur Gupta CLA 2013-06-26 06:04:15 EDT
*** Bug 382690 has been marked as a duplicate of this bug. ***
Comment 5 Martin Mathew CLA 2013-06-27 01:39:15 EDT
*** Bug 385101 has been marked as a duplicate of this bug. ***