-
Notifications
You must be signed in to change notification settings - Fork 93
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
xml-apis dependency causes build failure in JDT when migrating to JDK 11 #655
Comments
What do you mean by migrate to JDK 11? The project can build and run fine with JDK 11, produce a distribution perfectly working with Java 8 |
I can confirm your observation. I'm compiling it with 14 myself. Steps to reproduce the issue:
Some day JDK-8215739 will be fixed, possibly in a patch-release of the JDK, then also the Maven build for this project breaks. The immediate issue is that JDK 11 is simply more fun to work with. :-) |
Unfortunately, "more fun to work with" is not a compelling reason to require Java 11 at the moment, given that a majority of users are still stuck with Java 8. |
See eclipse-lsp4j/lsp4j#547. Once we move to lsp4j 0.13.0, we will need to support Java 11 properly. |
I checked if it would be possible to migrate to JDK, and ran into this issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=536928
I learned that JDT is correctly reporting an error, whereas the Maven build incorrectly passes because of this JDK bug: https://bugs.openjdk.java.net/browse/JDK-8215739
I'd suggest to migrate to 11 now, and remove the xml-apis dependency.
Apart from the benefits of a modern JDK, I'd argue that more such problems will accumulate over time, making migration only harder in the future.
The text was updated successfully, but these errors were encountered: