javaee / jersey

This is no longer the active Jersey repository. Please see the README.md
http://jersey.github.io
Other
2.86k stars 2.35k forks source link

Whether to support java 9? #3733

Open mrerhuo opened 6 years ago

mrerhuo commented 6 years ago

i creat java9 error list: image

jansupol commented 6 years ago

Have you tried using --add-modules java.xml.bind when starting your application?

Bo98 commented 6 years ago

@jansupol Aren't Java EE modules marked as deprecated (and even marked for removal!) though? I was under the impression that adding javax.xml.bind:jaxb-api as a dependency was the intended solution.

From JEP 261:

Modules that define Java EE APIs, or APIs primarily of interest to Java EE applications, have been deprecated and will be removed in a future release. They are not resolved by default for code on the class path

jansupol commented 6 years ago

Yes, the plan is to remove Java EE modules from future versions of JDK. For JDK 9, the modules are still there. As always, JDK not necessarily contains latest versions, so using jaxb dependency you mentioned would be preferable.