Oss/hadoop java17 runtime feature branch prerequisite #6020
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.
Description of PR
The latest Hadoop version 3.3.3 which supports Java 8 compile and Java 8, Java 11 runtime i.e the code is compiled with Java 8 and can be run on both Java 8 and Java 11. The intention of this project is to extend this capability to support Java 17 for the runtime as well for Hadoop version 3.3.3 and above.
Made the following fix in this PR:
Upgraded guice version from 4.0 to 5.1.0 to make it compatible for JRE17
The current Mocktio (2.x) and PowerMocktio (1.7.x) versions are not compatible with Java 17 and Hence needs a
appropriate version replacement.
As per the OSS discussion as mentioned mocktio and PowerMocktio, The following version bump up is required
Mockito core ---> Mockito inline 3.6.28
PowerMockito ---> 2.0.0
The JavaScript Engine has been removed from Java. Deprecated in Java 11, removed in Java 15.
So, need to use different script engine, as GraalVM
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?