Bug 245582 - [assist] Outer class not suggested when parameter type is inner enum
Summary: [assist] Outer class not suggested when parameter type is inner enum
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 16:05 EDT by Ary Borenszweig CLA
Modified: 2023-03-07 14:01 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ary Borenszweig CLA 2008-08-28 16:05:59 EDT
Build ID: I20080617-2000

Steps To Reproduce:
I have this class:

public class Outer {
	
	public static enum Inner {
		One,
		Two,
		Three
	}
	
	public static void foo(Inner inner) {
		
	}

}

In another method of another class, I write:

Outer.foo(Ou|);

( | indicates the cursor is after "Ou")

If I request assist, I don't get a suggestion for Outer. I want to write Outer.Inner.One, for example, but assist doesn't suggest "Outer", probably because the type of the expected parameter is of type 'Inner", and "Outer" is not assignable to "Inner".

I think assist should suggest "Outer" in this case.

More information:
Comment 1 Mike Wilson CLA 2009-05-05 10:39:25 EDT
Changing Version tag to something more believable.
Comment 2 Eclipse Genie CLA 2021-02-16 13:47:34 EST
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.
Comment 3 Eclipse Genie CLA 2023-03-07 14:01:41 EST
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.