Bug 106545 - API: IVariableBinding.isMethodParameter
Summary: API: IVariableBinding.isMethodParameter
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 15:31 EDT by Adam Kiezun CLA
Modified: 2006-02-14 06:58 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2005-08-09 15:31:36 EDT
3.1
there seems to be no API to ask a IVariableBinding if it is a method parameter
binding
Comment 1 Markus Keller CLA 2006-01-11 05:39:54 EST
See also bug 48420. A workaround is to search for the variable name in ((IMethod)variableBinding.getDeclaringMethod().getJavaElement()).getParameterNames().
Comment 2 Olivier Thomann CLA 2006-01-30 14:01:42 EST
Fixed and released in HEAD.
Updated existing tests:
org.eclipse.jdt.core.tests.dom.ASTConverter15Test.test0141()
org.eclipse.jdt.core.tests.dom.ASTConverter15Test.test0142()
org.eclipse.jdt.core.tests.dom.ASTConverterAST3Test.test0157()
org.eclipse.jdt.core.tests.dom.ASTConverterAST3Test.test0396()
org.eclipse.jdt.core.tests.dom.ASTConverterAST3Test.test0397()
Comment 3 Maxime Daniel CLA 2006-02-14 06:58:55 EST
Verified for 3.2 M5 using build I20060214-0010.