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

Bug 331828

Summary: DefaultBindingResoolver.resolveTypeBindingForName(Name name) for OT Elements
Product: [Tools] Objectteams Reporter: Jan Marc Hoffmann <exelnet>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 0.7.1   
Target Milestone: 0.8 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
tests & fix none

Description Jan Marc Hoffmann CLA 2010-12-04 03:34:04 EST
Hi guys,

shouldn't this method also return TypeBindings for OT elements? Analog to MethodInvocation Expressions a MethodSpec, FieldAccessSpec and LiftingTypeReference should also have a type, right? 

For DefaultBindingResolver.resolveName(Name name) they are implemented and return the corresponding Binding. In most cases an IVariableBinding.

They are just missing in the resolveTypeBindingForName method. :=)

greetings

Jan Marc
Comment 1 Stephan Herrmann CLA 2010-12-11 09:40:23 EST
Created attachment 185020 [details]
tests & fix
Comment 2 Stephan Herrmann CLA 2010-12-11 09:42:31 EST
Requested implementation has been committed as r1145 f. and will be
available in M4.

cheers
Comment 3 Stephan Herrmann CLA 2010-12-16 15:38:04 EST
Verified for M4 using build 201012150343 (using code inspection
and by the tests in the patch).
Comment 4 Stephan Herrmann CLA 2010-12-16 15:38:26 EST
.