eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
691 stars 356 forks source link

Whether to support java 9? #3733

Open jerseyrobot opened 6 years ago

jerseyrobot commented 6 years ago

i creat java9 error list: image

jerseyrobot commented 6 years ago
jerseyrobot commented 6 years ago

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

jerseyrobot commented 6 years ago

@Bo98 Commented @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

jerseyrobot commented 6 years ago

@jansupol Commented 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.