Allow jax-rs path annotation inheritance

This commit is contained in:
Owen Mansel-Chan
2024-12-09 16:23:30 +00:00
parent de1b374e0e
commit 9cc614ac2d
7 changed files with 64 additions and 50 deletions

View File

@@ -156,12 +156,12 @@ class NotAResourceClass1 {
class NotAResourceClass2 {
}
class ExtendsJaxRs1 extends JaxRs1 {
class ExtendsJaxRs1 extends JaxRs1 { // $ RootResourceClass
@Override
int Get() { // $ ResourceMethod
return 1;
}
@Override
@QueryParam("") // $ InjectionAnnotation
void Post() {
@@ -189,12 +189,12 @@ class ExtendsJaxRs1 extends JaxRs1 {
}
@Produces(MediaType.TEXT_XML) // $ ProducesAnnotation=text/xml
class ExtendsJaxRs1WithProducesAnnotation extends JaxRs1 {
class ExtendsJaxRs1WithProducesAnnotation extends JaxRs1 { // Not a root resource class because it has a JAX-RS annotation
@Override
int Get() { // $ ResourceMethod=text/xml
return 2;
}
@Override
@QueryParam("") // $ InjectionAnnotation
void Post() {
@@ -212,4 +212,4 @@ class ExtendsJaxRs1WithProducesAnnotation extends JaxRs1 {
@Override
void Options() { // $ ResourceMethod=text/xml
}
}
}