Bug 76524

Summary: Need a isVarargs() method on IMethodBinding
Product: [Eclipse Project] JDT Reporter: Luc Bourlier <eclipse>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: All   
Whiteboard:

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