-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Replace ManagementFactoryHelper with ManagementFactory for java11 #16874
Replace ManagementFactoryHelper with ManagementFactory for java11 #16874
Conversation
were you able to run some code with this change in a java 11 environment? for example, you could use the docker image at https://hub.docker.com/layers/alluxio/alluxio-maven/0.0.8-jdk11/images/sha256-84e7253045d53cc2ebfce98e3d6710b1d446e9724115df3dbf4bf41935b25d7c?context=explore as a way to run some of the same maven commands as the PR checks |
So still no chance to compile, am I right? I have a small program to try with java11:
|
Following is the commands:
|
You would be able to compile the code within the docker container with java 8 and then run the maven commands with java 11. This follows the way we build the code and run it on a different java version since we always build with java 8 and only test compatibility with other java versions at runtime. |
dev/jenkins/run_docker.sh
Outdated
@@ -23,7 +23,7 @@ function main { | |||
fi | |||
if [ -z "${ALLUXIO_DOCKER_IMAGE}" ] | |||
then | |||
ALLUXIO_DOCKER_IMAGE="alluxio/alluxio-maven:0.0.8-jdk8" | |||
ALLUXIO_DOCKER_IMAGE="alluxio/alluxio-maven:0.0.8-jdk11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Xenorith this is to try with jdk11,
Verified with the container, |
alluxio-bot, merge this please |
### What changes are proposed in this pull request? Replace ManagementFactoryHelper with ManagementFactory for java11 ### Why are the changes needed? Java 11 doesn't support to directly call ManagementFactoryHelper, so it is necessary to find an alternative one in java11. ### Does this PR introduce any user facing changes? NA pr-link: Alluxio#16874 change-id: cid-1e60172569c14a862603b23f013870cca605b3ff
### What changes are proposed in this pull request? Replace ManagementFactoryHelper with ManagementFactory for java11 ### Why are the changes needed? Java 11 doesn't support to directly call ManagementFactoryHelper, so it is necessary to find an alternative one in java11. ### Does this PR introduce any user facing changes? NA pr-link: Alluxio#16874 change-id: cid-1e60172569c14a862603b23f013870cca605b3ff
What changes are proposed in this pull request?
Replace ManagementFactoryHelper with ManagementFactory for java11
Why are the changes needed?
Java 11 doesn't support to directly call ManagementFactoryHelper, so it is necessary to find an alternative one in java11.
Does this PR introduce any user facing changes?
NA