title: Can Resteasy look into parameter's type for JAX-RS methods?
body: <p>We were using Resteasy 3.0.9 for our JAX-RS webservices, and recently switched to 3.0.19, where we started to see a lot of <code>RESTEASY002142: Multiple resource methods match request</code> warnings.</p>
  
  <p>For example, we have methods like:</p>
  
  <pre><code>@Path("/{id}") 
  public String getSome(UUID id)
  
  @Path("/{id}") 
  public String getSome(int id)
  </code></pre>
  
  <p>I'm not sure how it worked in 3.0.9, probably, we just were very lucky as Resteasy seems to select first method from all candidates (and 3.0.19 sorts candidate methods).</p>
  
  <p>One solution is to explicitly specify regex: <code>@Path("/{id : [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}}")</code></p>
  
  <p>But is there a way to somehow tell Resteasy to look into method parameters and construct appropriate regex automatically? </p>