[OHFJIRA-84] : java 11 runtime compatibility #89
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support for JDK 11 runtime
With these added libraries, openhub is able to run with java 11 runtime.
Details
Main issue with backward compatibility is removal of some Java EE APIs:
https://cr.openjdk.java.net/~iris/se/11/spec/fr/java-se-11-fr-spec/#APIs-removed
these apis were marked as deprecated in java 9, removed entirely in java 11.
https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j
Following dependencies were added, as they are required for openhub library stack:
Versions used are the ones used in java 8 runtime (when possible).
Known issues
Warning during spring context startup:
Caused by spring framework, does seem to be warning only, will be resolved in Spring 5.1 (https://jira.spring.io/browse/SPR-15859). Warning should be resolved with migration to Spring Boot 2.x.