Bug 94653 - [1.5][select] Selection on invalid raw member type should still surface raw type
Summary: [1.5][select] Selection on invalid raw member type should still surface raw type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 07:06 EDT by Philipe Mulet CLA
Modified: 2005-05-27 09:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2005-05-11 07:06:24 EDT
Build 20050509

When selecting on "Outer<String>.Inner", the associated binding key should show
Inner as a raw type, even if the qualifier is invalid.

class Outer<T> {
  class Inner<U> {
  }
  Outer<String>.Inner inner;
}
Comment 1 Philipe Mulet CLA 2005-05-11 07:07:40 EDT
Proposed fix for SelectionOnParameterizedQualifiedTypeReference:
	
	public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {
		super.resolveType(scope, checkBounds);
		throw new SelectionNodeFound(this.resolvedType);
	}
	
	public TypeBinding resolveType(ClassScope scope) {
		super.resolveType(scope);
		throw new SelectionNodeFound(this.resolvedType);
	}
Comment 2 David Audel CLA 2005-05-17 09:11:47 EDT
Fixed and test added
  resolveTests#test0096()
Comment 3 Maxime Daniel CLA 2005-05-27 04:54:09 EDT
Verified on build I20050526-2000-win32.