-
Notifications
You must be signed in to change notification settings - Fork 123
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
Deprecate @Context injection and @Suspended for Jakarta Rest 3.2 #1209
Comments
When I voted my +1 for the Jakarta REST 3.2, I did so with an expectation of 3.2 being less work than 4.0, i.e. the 3.1 (proprietary) injection being mandatory, while CDI injection being optional. I hope we agree on this, otherwise it makes more sense to have the release version 4.0. For this, I would propose not to |
The From what I understand there are two issues:
On point 2 what is not clear to me is how you can deprecate something in documentation and not have a replacement, but if you add the That said, I really don't see an issue with requiring CDI in a container. I understand that will be an issue on the client side. However, that's still going to be an issue whether we deprecate the annotation or remove it. |
The problem ist that software does exists that relies on the fact that 3.x is able to be run without CDI. It is not a good idea to introduce the enforcement for CDI in the 3.x line. Downstreams expect this enforcement in 4.x only. |
I guess that's what I meant by "requiring CDI in a container". We have this issue in 4.x really as well with the client side and defining whether or not it should be required in The current spec, 3.1, already requires CDI if running in a CDI container. I do understand that doesn't address all cases like a servlet container without CDI or That said, I still think it's a really useful and good idea to deprecate |
This basically means that in the app server, we need to support the CDI injection in the container, whereas the customer still wants to use
|
Maybe I'm misunderstanding the spec wrong, but I thought this was already required. Per section 11.2.3:
I don't really understand how this is a stretch from what is already required. Again, maybe I'm misunderstanding though. |
@jansupol do you still have concerns with the feasibility of this? |
Simply deprecating the My concern was mainly about mixing these two types of injection implementations on a single classpath. And a different behavior of each injection framework (possibly on a different issue). |
@jim-krueger Do we have now a better understanding as to whether this deprecation (w/alternative) is feasible for 3.2? Still not clear to me that it is. |
@spericas Talking with @jamezp , who has had separate discussions concerning this with @jansupol , the feeling I get is that deprecation (w/alternative) is feasible. Of course the challenge is to get a CI (likely RESTEasy) along with the TCK updates completed before the EE11 Wave 5 deadline of March 29th. Whenever asked we've always indicated that this is an aggressive goal, however the primary issues with deprecation (w/alternative) also exist with the original proposal for Jakarta Rest 4.0, where @context would just have been removed. So continuing with our work on 3.2 has value, regardless of whether it actually makes it into EE11. |
@jim-krueger Understood. I'd like to better understand who we plan to handle resource method invocations in the new and the old (and backward compatible) styles, as well as how to flag (and possibly reject?) any hybrid alternative. |
@Context
injection and @suspended will be deprecated in Jakarta Rest 3.2The text was updated successfully, but these errors were encountered: