Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 271551 - [quick fix] Bad proposed quickfix in case of reducing visibility of abstract method to private
Summary: [quick fix] Bad proposed quickfix in case of reducing visibility of abstract ...
Status: CLOSED DUPLICATE of bug 216898
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 01:14 EDT by Dmitriy Matveev CLA
Modified: 2012-04-23 01:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Matveev CLA 2009-04-08 01:14:22 EDT
Build ID: I20081030-1917

Steps To Reproduce:
1. Write following code and save edited file:
public class BadQuickfix
{
    abstract class Base
    {
        protected abstract void method();
    }

    final class Derived
        extends Base
    {
        private void method()
        {
        }
    }
}

"private void method()" declaration in Derived class is incorrect and there is correct error message for it, but proposed quickfix for solving of that error is "Change visibility of 'Base.method' to 'private'" is completely incorrect.
The expected quickfix here is "Change visibility of 'Derived.method' to 'protected'"
Comment 1 Deepak Azad CLA 2012-04-23 01:13:05 EDT

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