Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 87239

Summary: [quick fix] wrong visibility for overriding method in interface
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: rgra Missing name <rgransberger>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, daniel_megert, deepakazad
Version: 3.1Keywords: bugday
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: fix candidate

Description Markus Keller CLA 2005-03-06 17:13:01 EST
I20050301-1230

In the example below, the quick fix proposes to change the visibilty of B#xxx()
to default - which is an empty change. It should propose to change to public.

interface I {
	void xxx();
}

class A {
	void xxx() {}
}

class B extends A implements I {
	void xxx() {} //error
}
Comment 1 Deepak Azad CLA 2012-04-23 01:18:04 EDT
(In reply to comment #0)
> the quick fix proposes to change the visibilty of B#xxx()
> to default 

It also offers to change the visibility of A#xxx() to default.
Comment 2 Deepak Azad CLA 2012-04-23 01:20:52 EDT
*** Bug 377243 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2013-03-12 08:26:32 EDT

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