I have a class which has a field the same name as a method on that class.
The problem I’m having is groovy is using the field instead of the method.
The class is javax.ws.rs.core.Response and the method/field is status.
I am unable to call the status(…) method with just: Response.status(Status.BAD_REQUEST) to have it return a ResponseBuilder.
Is there a way to force groovy to use the method in this case?
Do you have an example of this failing?
I wrote this quick test:
And that prints
called methodas I would expect (it doesn’t try to call the property)