jersey icon indicating copy to clipboard operation
jersey copied to clipboard

Whether to support java 9?

Open mrerhuo opened this issue 7 years ago • 3 comments

i creat java9 error list: image

mrerhuo avatar Dec 11 '17 13:12 mrerhuo

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

jansupol avatar Dec 11 '17 14:12 jansupol

@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

Bo98 avatar Dec 18 '17 15:12 Bo98

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.

jansupol avatar Dec 20 '17 16:12 jansupol