-
Bug
-
Resolution: Done
-
Major
-
3.14.0.Final, 4.6.0.Final
-
None
-
Undefined
A RestClientDefinitionException is thrown when adding java.io.Closeable to the REST service interface:
org.eclipse.microprofile.rest.client.RestClientDefinitionException: Parameters and variables don't match on interface MyClass$MyInterface::close
The interface is:
public interface MyInterface extends Closeable { @javax.ws.rs.GET @javax.ws.rs.Path("{endPoint}") Response getResponse(@PathParam("endPoint") String path, @QueryParam("id") String id); }
It works with RestEasy v4.5.8!
After investigating the differences I was able to tackle it down to this line:
respectively:
Somehow the template does not get changed. It stuck with the PathParam instead of "foobar" and ultimately LOC#403 if (allVariables.size() != paramMap.size()) fails.
Possible fix for L408:
template = template.resolveTemplates(paramMap, false).build();