Bug 85811

Summary: BindingKey.toSignature should return method signature for methods
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer
Version: 3.0   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 87174    

Description Martin Aeschlimann CLA 2005-02-18 06:59:56 EST
20050218

When using BindingKey to parse a key retrieved from an IMethod, the returned
signature is not a method signature (its currently the signature of the method
return type)
Comment 1 Martin Aeschlimann CLA 2005-02-18 09:30:56 EST
Also a problem with fields: The signature returned on toSignature seems the be
the parent type binding.
I would like to access the field's declared type.
Comment 2 Martin Aeschlimann CLA 2005-03-08 04:59:51 EST
*** Bug 87174 has been marked as a duplicate of this bug. ***
Comment 3 Jerome Lanneluc CLA 2005-03-08 07:00:38 EST
Fixed BindinKey#toSignature() to handle methods (change is in
KeyToSignature#consumeMethod(char[])).
Added regression test BindingKeyTests#test014()

Please enter a separate bug for comment #1 (note that there is no support on
Signature for field's type). It seems that you want something like
BindingKey#getFieldTypeSignature().
Comment 4 Martin Aeschlimann CLA 2005-03-08 07:35:43 EST
filed bug 87362 for the feature request of BindingKey#getFieldTypeSignature().
Comment 5 Jerome Lanneluc CLA 2005-03-08 07:41:27 EST
Reopening and undoing this change as it breaks Java search
Comment 6 Jerome Lanneluc CLA 2005-03-08 10:54:00 EST
Fixed breaking change. Released change in KeyToSignature#consumeMethod(char[]))
and associated test.
Comment 7 David Audel CLA 2005-03-31 05:33:03 EST
Verified in I20050330-0500