jakartaee / rest

Jakarta RESTful Web Services
Other
353 stars 114 forks source link

How to pass jakarta.ws.rs.core.Response to a method accepting javax.ws.rs.core.Response #1151

Closed harpreet86 closed 1 year ago

harpreet86 commented 1 year ago

I have updated the version of the library jakarta.ws.rs-api from 2.1.6 to 3.0.0, this has changed the package of Response class from javax.ws.rs.core to jakarta.ws.rs.core

Now my code uses a library that still accepts javax.ws.rs.core.Response objects, this library might take time to switch to the new version of jakarta.ws.rs-api.

Any suggestions?

spericas commented 1 year ago

Please don't file an issue to ask a question. You cannot mix javax and jakarta packages, if you move to jakarta, all your libraries and dependencies need to be moved as well.