Hi,
I have recently upgraded to V7.4.1 and immediately got a lot of new warnings for my project regarding invalid arguments similar to:
The method sendMaill(String,String,String,String,String,String,Array<plugins.mail.Attachment>,String) in the type Plugin<mail> is not applicable for the arguments (String,String,String,String,String,String,plugins.mail.Attachment|Array<plugins.mail.Attachment>)
The one thing they all have in common is that there are multiple calling options for the method and the particular one I am using is definitely valid for the method in question. Further investigation shows that there are two conditions that need to be met for the warning to show up incorrectly:
- There must be a signature matching the call you are using but with additional arguments at the end
- The particular signature you are using comes after the one it complains about when you look at the code completion options
This would indicate that Servoy/Eclipse/JSDoc (not sure which is responsible) is finding the partial match for call and then immediately reporting the warning without checking the rest of the possible calling options.
Has anyone else experienced this? Should I report it as a bug?
Thanks
Steve