Bug 85811 - BindingKey.toSignature should return method signature for methods
Summary: BindingKey.toSignature should return method signature for methods
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 87174
  Show dependency tree
 
Reported: 2005-02-18 06:59 EST by Martin Aeschlimann CLA
Modified: 2005-03-31 05:33 EST (History)
1 user (show)

See Also:


Attachments

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