-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31059 from lostiniceland/fix-30843-main
Path lookup must also consider interfaces
- Loading branch information
Showing
5 changed files
with
107 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...eter-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResourceApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
import jakarta.ws.rs.PathParam; | ||
|
||
// Splitting JAX-RS annotations to interfaces tests the behaviour of | ||
// io.quarkus.resteasy.deployment.RestPathAnnotationProcessor | ||
public interface MessageResourceApi extends MessageResourceNestedApi { | ||
|
||
@GET | ||
@Path("match/{id}/{sub}") | ||
String match(@PathParam("id") String id, @PathParam("sub") String sub); | ||
} |
13 changes: 13 additions & 0 deletions
13
...rometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResourceNestedApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
import jakarta.ws.rs.PathParam; | ||
|
||
// Testing deep lookup of Path-annotation | ||
public interface MessageResourceNestedApi { | ||
|
||
@GET | ||
@Path("match/{text}") | ||
String optional(@PathParam("text") String text); | ||
} |