title: How JAX-RS matches for two or more compatible @Path expressions?
body: <p>With following two methods,</p>
  
  <pre class="lang-java prettyprint-override"><code>@GET
  @Path("/{id: \\d+}")
  public MyEntity readSingleById(@PathParam("id") long id) {
  }
  
  
  @GET
  @Path("/{name: .+}")
  public MyEntity readSingleByName(@PathParam("name") String name) {
  }
  </code></pre>
  
  <p>Is there any chance that following request matches to <code>readSingleByName</code> not to <code>readSingleById</code>?</p>
  
  <pre><code>GET /1234 HTTP/1.1
  </code></pre>
  
  <p>If so, what can I do? What is the general rule specified?</p>
  
  <p>Sorry I should've checked the spec if anyone say so.</p>