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

Add support for jakarta namespace #229

Closed
yeekangc opened this issue Apr 7, 2022 · 4 comments · Fixed by #332
Closed

Add support for jakarta namespace #229

yeekangc opened this issue Apr 7, 2022 · 4 comments · Fixed by #332
Assignees

Comments

@yeekangc
Copy link

yeekangc commented Apr 7, 2022

MP 5 supports jakarta namespace aligning with Jakarta EE 9/9.1. The LS should support the use of packages with the jakarta namespace.

Cc @kathrynkodama

@angelozerr
Copy link
Contributor

Is it possible to explain more which support you wish to have with a sample please.

@kathrynkodama
Copy link
Contributor

For example, updating the snippets that use the old javax namespace to jakarta if Jakarta EE 9/9.1+ is in use.

"import javax.enterprise.context.ApplicationScoped;",
"import javax.ws.rs.GET;",
"import javax.ws.rs.Path;",
"import javax.ws.rs.PathParam;",

would become:

"import jakarta.enterprise.context.ApplicationScoped;",
"import jakarta.ws.rs.GET;",
"import jakarta.ws.rs.Path;",
"import jakarta.ws.rs.PathParam;",

@angelozerr
Copy link
Contributor

Ok I see, thanks @kathrynkodama for your feedback. Any contribution are welcome :)

@datho7561
Copy link
Contributor

datho7561 commented Nov 10, 2022

Another part of this issue, which I've started to look at in #313, is making sure that the CodeLens for JAX-RS and RestClient appear in cases where Path and GET are imported using the jakarta namespace.

datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 7, 2022
If the jakarta versions of the javax classes referenced in the current
snippets are on the classpath, hide the old snippet and display a new
snippet that imports the jakarta classes instead.

Closes eclipse#229

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 7, 2022
If the jakarta versions of the javax classes referenced in the current
snippets are on the classpath, hide the old snippet and display a new
snippet that imports the jakarta classes instead.

Closes eclipse#229, eclipse#320

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 7, 2022
If the jakarta versions of the javax classes referenced in the current
snippets are on the classpath, hide the old snippet and display a new
snippet that imports the jakarta classes instead.

Closes eclipse#229, closes eclipse#320

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 7, 2022
If the jakarta versions of the javax classes referenced in the current
snippets are on the classpath, hide the old snippet and display a new
snippet that imports the jakarta classes instead.

Closes eclipse#229, closes eclipse#320

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 9, 2022
- Use `${jakarta}` to point to either `javax` or `jakarta`, depending on
  which is available, and prefering `jakarta`
- Rename `jaxrc` to `rest_class` and `jaxrm` to `rest_get`

Closes eclipse#320, closes eclipse#229

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 9, 2022
- Use `${jakarta}` to point to either `javax` or `jakarta`, depending on
  which is available, and prefering `jakarta`
- Rename `jaxrc` to `rest_class` and `jaxrm` to `rest_get`

Closes eclipse#320, closes eclipse#229

Signed-off-by: David Thompson <[email protected]>
@datho7561 datho7561 self-assigned this Dec 9, 2022
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 14, 2022
- Use `${jakarta}` to point to either `javax` or `jakarta`, depending on
  which is available, and prefering `jakarta`
- Rename `jaxrc` to `rest_class` and `jaxrm` to `rest_get`

Closes eclipse#320, closes eclipse#229

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Dec 15, 2022
- Use `${jakarta}` to point to either `javax` or `jakarta`, depending on
  which is available, and prefering `jakarta`
- Rename `jaxrc` to `rest_class` and `jaxrm` to `rest_get`

Closes eclipse#320, closes eclipse#229

Signed-off-by: David Thompson <[email protected]>
angelozerr pushed a commit that referenced this issue Dec 16, 2022
- Use `${jakarta}` to point to either `javax` or `jakarta`, depending on
  which is available, and prefering `jakarta`
- Rename `jaxrc` to `rest_class` and `jaxrm` to `rest_get`

Closes #320, closes #229

Signed-off-by: David Thompson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants