Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333701 - [navigation] Double Ctrl+O continues to hide methods inherited by an inner class
Summary: [navigation] Double Ctrl+O continues to hide methods inherited by an inner class
Status: RESOLVED DUPLICATE of bug 107096
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 16:34 EST by Rostislav Krasny CLA
Modified: 2011-01-07 05:46 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rostislav Krasny CLA 2011-01-06 16:34:23 EST
Build Identifier: 20100917-0705

Consider you have two Java files: A.java and B.java with followings contents:

public class A {

	public void method1() {
		// empty
	}
}

public interface B {

	public static class C extends A {
		public void method2() {
			method1();
		}
	}
}

Both files compiles properly and without any compilation error or warning. Now place a cursor somewhere in the inner class C and press the Ctrl+O twice. You will be able to find method2() but you will be unable to find method1().

Convert interface B into class B and try again. The method1() method will still be hidden.

Reproducible: Always

Steps to Reproduce:
See details.
Comment 1 Ayushman Jain CLA 2011-01-07 00:48:19 EST
Seems to be broken only for inner classes. Moving to JDT/UI.
Comment 2 Dani Megert CLA 2011-01-07 02:50:54 EST
This works as designed. Ctrl+O shows the outline of the top level class and hence the second Ctrl+O shows its inherited members and not the inherited members of the selected/enclosing type.
Comment 3 Markus Keller CLA 2011-01-07 05:46:03 EST

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