Bug 94653

Summary: [1.5][select] Selection on invalid raw member type should still surface raw type
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.