Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addAnnotation with just one parameter #2

Closed
viktornordling opened this issue Oct 6, 2020 · 2 comments
Closed

addAnnotation with just one parameter #2

viktornordling opened this issue Oct 6, 2020 · 2 comments

Comments

@viktornordling
Copy link

viktornordling commented Oct 6, 2020

I want to add an annotation that looks like this:

@Path("/")

(where Path is javax.ws.rs.Path)

But no matter how I try, the best I can get is:

@Path( { "/" } )

This doesn't work because the value in the Path annotation is not an array (unlike most other annotations).

Is this a bug?

@burningwave
Copy link
Collaborator

burningwave commented Oct 6, 2020

Ok, this feature will be added in the next release; but for the moment, as a workaround, you can use the method .addOuterCodeLine e.g.: .addOuterCodeLine("@Path(\"/\")"). In the next release the behaviour you have requested will be the default

@burningwave
Copy link
Collaborator

Solved with version 8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant