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

Bug 233434

Summary: [generalize type] ignores reduced accessibility of inherited member
Product: [Eclipse Project] JDT Reporter: Friedrich Steimann <steimann>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Friedrich Steimann CLA 2008-05-22 08:16:22 EDT
Build ID: M20071023-1652

Steps To Reproduce:

package a;
public abstract class A {
	abstract void m(); // not public
}

package a;
public class B extends A {
	public void m() {}
}

package b;
import a.B;
public class C {
	B b;
	void n() {
		b.m();
	}
}

Generalizing declared type of b causes an access error, since A.m() is not accessible from C.

More information:
Related to, but not identical with, http://bugs.eclipse.org/233391
Comment 1 Eclipse Genie CLA 2018-10-17 20:23:27 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.