Bug 76524 - Need a isVarargs() method on IMethodBinding
Summary: Need a isVarargs() method on IMethodBinding
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-18 21:17 EDT by Luc Bourlier CLA
Modified: 2004-11-03 10:06 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 Luc Bourlier CLA 2004-10-18 21:17:41 EDT
I'm updating the java debug evaluation engine to support varargs method invocation.
I haven't find an easy way to know if a method called is a varargs or not.
Having a isVarargs() method on IMethodBinding would help a lot.
Comment 1 Olivier Thomann CLA 2004-10-19 10:50:28 EDT
Jim,

Could you please take care of the API?
Comment 2 Olivier Thomann CLA 2004-10-19 10:51:41 EDT
We might want to say that modifiers include the AccVargs value. So maybe we
simply need a helper method on the Modifier class.
Comment 3 Jim des Rivieres CLA 2004-10-19 12:47:40 EDT
Having a separate method is preferable to suggesting client look at extra 
modifier bits.

Added API to IMethodBinding:
   public boolean isVarargs();
Comment 4 Olivier Thomann CLA 2004-10-19 15:06:34 EDT
Fixed and released in HEAD.
Regression test added (by updating existing test test51 of ASTConverterTest15).
Comment 5 David Audel CLA 2004-11-03 10:06:37 EST
Verified for 3.1M3 with build I20041102