Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.5
-
None
Description
I'm calling a Java API that has a method addImage(String...) and another addImage() which calls the first with a single argument.
When I call the no-argument method from a Groovy class it works fine but if I add @CompileStatic to that Groovy class it will now dispatch to the varargs form with no arguments.
Also I found that if the call target is a field of the Groovy class it works properly, this only happens when the call target is a local variable.
I have been unable to reproduce this when calling a class of my own so I've attached a test case calling the same API I'm using (im4java).