Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331828 - DefaultBindingResoolver.resolveTypeBindingForName(Name name) for OT Elements
Summary: DefaultBindingResoolver.resolveTypeBindingForName(Name name) for OT Elements
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 0.8 M4   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-04 03:34 EST by Jan Marc Hoffmann CLA
Modified: 2010-12-16 15:38 EST (History)
0 users

See Also:


Attachments
tests & fix (7.22 KB, patch)
2010-12-11 09:40 EST, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
.